FIX: ODBC Driver Manager Incorrectly Reports SQL_NO_DATA_FOUND for ANSI Driver (319243)
The information in this article applies to:
- Microsoft Data Access Components 2.7
This article was previously published under Q319243 SYMPTOMS When you use an ANSI ODBC driver, the ODBC Driver Manager
may incorrectly return SQL_NO_DATA_FOUND for a column that is defined as
VARCHAR or CHAR and that has an empty string in it. The problem does not occur
if the column contains some data or a "NULL" value. The problem only occurs if
the data is an empty string and you bind it from the client side with
SQL_C_WCHAR. CAUSE The ODBC Driver Manager incorrectly assumes that the driver
does not have any data when it tries to convert the empty string from ANSI to
UNICODE. 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 INF: How to Obtain the Latest SQL Server 2000 Service Pack To resolve this problem, download the
Q319243_MDAC27_x86.exe patch.
The following file
is available for download from the Microsoft Download
Center: Release Date: July 12,
2002 For additional information about how to download Microsoft
Support files, click the following article number to view the article in the
Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
For more information about this patch, visit the
following Microsoft Web site: WORKAROUND A simple workaround for this problem is to bind the column
as SQL_C_CHAR instead of SQL_C_WCHAR. 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.
Modification Type: | Major | Last Reviewed: | 6/27/2006 |
---|
Keywords: | kbHotfixServer kbQFE kbdownload kbSQLServ2000sp3fix kbbug kbfix kbSQLServ2000preSP3fix KB319243 |
---|
|