FIX: SQLExecute on a Prepared Statement with SQL_NOSCAN_ON Causes Client-Side AV (308401)
The information in this article applies to:
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.6 SP1
- Microsoft Data Access Components 2.7
- Microsoft ODBC Driver for SQL Server 2000.80.194
This article was previously published under Q308401 SYMPTOMS
When you execute a statement that was prepared with the SQL_ATTR_NOSCAN attribute, you may receive an access violation (AV) as follows:
"Unhandled exception in appname.exe
(SQLSRV32.DLL): 0xC0000005: Access Violation."
RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000, the latest service pack for MDAC 2.6, or the hotfix referenced below.
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
300635 INFO: How to Obtain the Latest MDAC 2.6 Service Pack
Hotfix
The English version of this fix should have the following file attributes or later:
Date Version Size File name
-----------------------------------------------------------
18-SEP-2001 2000.80.447.0 29,252 bytes Odbcbcp.dll
18-SEP-2001 2000.80.447.0 471,121 bytes Sqlsrv32.dll
18-SEP-2001 2000.80.447.0 90,112 bytes Sqlsrv32.rll
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 MDAC 2.6 Service Pack 2. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/26/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbSQLServ2000sp3fix kbBug kbfix kbmdac260sp2fix kbSQLServ2000preSP2Fix kbSQLServ2000preSP3fix KB308401 |
---|
|