The information in this article applies to:
SYMPTOMSThe first row-returning query that you run on an ADO connection to SQL Server, using the SQL Server ODBC driver causes the following query to be run on SQL Server:
CAUSEThe OLE DB provider for ODBC drivers requests information from SQL Server to understand how to manage queries and results. STATUSThis behavior is by design. MORE INFORMATIONIf your initial row-returning query uses a client-side recordset or a server-side firehose cursor, this behavior results in a temporary connection to your SQL Server which will be closed as soon as the query has completed. Steps to Reproduce BehaviorUse SQL Server's SQL Trace utility to see that the following code establishes a second connection to the database. Modify the connection string to connect to your SQL Server database as follows: (c) Microsoft Corporation 1999, All Rights Reserved. Contributions by David Sceppa, Microsoft Corporation.Additional query words:
Keywords : kbADO kbDatabase kbMDAC kbVBp600 kbGrpVBDB kbGrpMDAC kbDSupport kbADO210sp2 kbMDAC210SP2 |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |