Article ID: 318606 - Last Review: September 27, 2005 - Revision: 4.1 FIX: SQL Server ODBC Driver Resets Connection Attributes When Used in Connection PoolingThis article was previously published under Q318606 SYMPTOMS
When an application uses connection pooling through ActiveX Data Objects (ADO), OLE DB, or Open Database Connectivity (ODBC), and the following conditions are true
[Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated. [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. CAUSE
This behavior occurs because the SQL Server ODBC driver sends a command to the SQL Server computer to reset the connection attributes every time that a connection is reused from the connection pool.
RESOLUTION To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 290211
(http://support.microsoft.com/kb/290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
The English-language version of this fix should have the following file attributes or later:
Date Time Version Size File name -------------------------------------------------- 02/25/02 11:55A 2000.81.8425.0 389120 Sqlsrv32.dll 02/25/02 11:55A 2000.81.7713.0 90112 Sqlsrv32.rll 02/25/02 11:55A 2000.81.8425.0 24576 Odbcbcp.dll WORKAROUND
A connection that relies on settings in the DSN that are not the default settings can send the SQL Server commands to set the connection attributes every time that the connection opens or reuses a connection from the pool, as follows:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3. | Article Translations
|
Back to the top
