Article ID: 191268 - Last Review: August 11, 2005 - Revision: 1.2 BUG: SQLOLEDB May Spawn Additional Connection For Action QueryThis article was previously published under Q191268 SYMPTOMS
If you have a server-side cursor open and execute an action query, the SQL
Server OLE DB Provider treats an action query as if it returned data in a
forward-only, read-only cursor and isolates that query on its own
connection. This connection is created solely for the action query and is
closed immediately after executing the query.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
If you do not have a server-side cursor currently opened on the ActiveX
Data Objects (ADO) connection object, the SQL Server OLE DB provider does
not create a second connection to the database.
Use SQL Server's SQL Trace utility to see that the following code establishes a second connection to the database to perform the action query. Modify the Data Source, User ID, and Password in the connection string to connect to your SQL Server database. Here is the code: APPLIES TO
| Article Translations
|
Back to the top
