Open two rowset with same database connection
Thank you for your help.
The table1 and table2 are different table ralated by a
foreign key:
Table1:
Index1 (auto index, primary key)
Other fields...
Table2:
Index2 (auto index, primary key)
Index1 (same as Table1.Index1, foreign key)
Other fields...
I solved the problem by add rowset property
propset.AddProperty(DBPROP_SERVERCURSOR, true);
to table1 and table2. When I use SQL trace, no new
connection any more.
My question are:
1. BY default, the cousor is server-side, why
should I set SERVERCURSOR property?
2. For better performance, what is the rule for open
multiple rowsets? Could you recommand any article?
Thanks!
connection. If you
active, the provider will
alternative is that you
you do in ODBC).
connections, or use
acceptable, I would leave
implicitly. That way,
connection, we will do
code.
of your first
work are you doing
procedure on the server?
confers no rights.
|