Article ID: 257668 - Last Review: October 5, 2005 - Revision: 1.3 FIX: SQL Server ODBC Driver May Cause Incorrect Code Conversion of Some Characters
This article was previously published under Q257668 IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986
(http://support.microsoft.com/kb/256986/EN-US/
)
Description of the Microsoft Windows Registry
On This PageSYMPTOMS
The Microsoft Data Access Components (MDAC) 2.1 or later version of the SQL Server ODBC driver may not store extended characters correctly if the code page for SQL Server does not match the client's code page. Instead, the characters are stored as "???".
CAUSE
The SQL Server ODBC driver (version 3.70.0623 or later) and the OLE DB provider (version 7.01.0623 or later) translate character data from the client code page to the server code page automatically by default. The translation may cause a problem in ODBC or OLE DB applications that store extended characters, if the client application does not use the same code page as the server and the client does not explictly turn Autotranslation off when making the database connection.
To turn Autotranslation off when using the ODBC driver, add the attribute "AutoTranslate=no" in the ODBC connection string. To turn the Autotranslation setting off when using the OLE DB provider, set the SSPROP_INIT_AUTOTRANSLATE property to VARIANT_FALSE. SSPROP_INIT_AUTOTRANSLATE is part of the provider-specific DBPROPSET_SQLSERVERDBINIT property set. RESOLUTIONA supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next MDAC 2.1 service pack that contains this hotfix. To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS
(http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms)
NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.The English version of this fix should have the following file attributes or later: Date Time Version Size File name Platform ------------------------------------------------------------------- 12/9/99 08:46a 3.70.0758 24,848 Odbcbcp.dll x86 12/9/99 08:46a 3.70.0758 516,368 Sqlsrv32.dll x86 STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
REFERENCESFor additional information about Autotranslation, click the article number below to view the article in the Microsoft Knowledge Base:234748
(http://support.microsoft.com/kb/234748/EN-US/
)
PRB: SQL Server ODBC Driver Converts Language Events to Unicode
257670
(http://support.microsoft.com/kb/257670/EN-US/
)
FIX: OLE DB Provider for SQL Server May Cause Incorrect Code Conversion of Some Characters
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top