Microsoft Knowledge Base Email Alertz

(875519) - Describes a problem that occurs when you perform an update or an insert statement from an ODBC client application, and the contents of the ntext parameter may be corrupted when the code page is different on the client.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 875519 - Last Review: February 13, 2007 - Revision: 3.1

FIX: The contents of the ntext parameter may be corrupted when you perform an update or an insert statement from an ODBC client application


Notice
This hotfix is available as part of a cumulative hotfix package. When you receive this hotfix from Microsoft Product Support Services, the article number that is listed in the hotfix package may be different from the cumulative article number. For more information about the hotfix package, see the following article in the Microsoft Knowledge Base:
836799  (http://kbalertz.com/Feedback.aspx?kbNumber=836799/ ) FIX: Hotfixes are available for MDAC 2.7 Service Pack 1

On This Page

SYMPTOMS

When your Open Database Connectivity (ODBC) application performs an update or an insert statement on a Microsoft SQL Server database, the contents of the ntext parameter may be corrupted when the following conditions are true:
  • The code page setting on the client is different from the code page setting on the server that is running the SQL Server database. For example, the client code page is Chinese and the server code page is US English.

    Note This problem occurs in multi-byte code page languages, such as Chinese, Japanese, or Korean.
  • The ntext parameter is a data-at-execution parameter.
  • The length of the ntext parameter is set by using the SQL_DATA_AT_EXEC macro.
Note When a parameter is bound with a *StrLen_or_IndPtr pointer that is set to SQL_DATA_AT_EXEC in the SQLBindParameter() function and the value length is less than 400 KB, the problem does not occur.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Data Access Components service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
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 usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   02-Aug-2004  19:18  2000.81.9051.0     61,440  Dbnetlib.dll     
   02-Aug-2004  19:14  2.71.9051.0       307,200  Msadce.dll       
   02-Aug-2004  19:18  2.71.9051.0        57,344  Msadcf.dll       
   02-Aug-2004  19:18  2.71.9051.0       131,072  Msadco.dll       
   02-Aug-2004  19:18  2.71.9051.0        53,248  Msadcs.dll       
   02-Aug-2004  19:15  2.71.9051.0       147,456  Msadds.dll       
   02-Aug-2004  19:15  2.71.9051.0       491,520  Msado15.dll      
   02-Aug-2004  19:18  2.71.9051.0       159,744  Msadomd.dll      
   02-Aug-2004  19:18  2.71.9051.0       180,224  Msadox.dll       
   02-Aug-2004  19:15  2.71.9051.0        53,248  Msadrh15.dll     
   02-Aug-2004  19:18  2.71.9051.0       221,184  Msdaora.dll      
   02-Aug-2004  19:15  2.71.9051.0       180,224  Msdaprst.dll     
   02-Aug-2004  19:18  2.71.9051.0       188,416  Msdaps.dll       
   02-Aug-2004  19:18  2.71.9051.0       110,592  Msdarem.dll      
   02-Aug-2004  19:14  2.71.9051.0       126,976  Msdart.dll       
   02-Aug-2004  19:14  2.71.9051.0       303,104  Msdasql.dll      
   02-Aug-2004  19:18  2.71.9051.0        32,768  Msdfmap.dll      
   02-Aug-2004  19:18  2.71.9051.0        90,112  Msjro.dll        
   02-Aug-2004  19:18  2.573.9051.0      131,072  Msorcl32.dll     
   02-Aug-2004  19:13  3.520.9051.0      204,800  Odbc32.dll       
   02-Aug-2004  19:18  2000.81.9051.0     24,576  Odbcbcp.dll      
   02-Aug-2004  19:18  3.520.9051.0       98,304  Odbccp32.dll     
   02-Aug-2004  19:18  3.520.9051.0       61,440  Odbccr32.dll     
   02-Aug-2004  19:18  3.520.9051.0       61,440  Odbccu32.dll     
   02-Aug-2004  19:14  2.71.9051.0       417,792  Oledb32.dll      
   02-Aug-2004  19:18  2000.81.9051.0    471,040  Sqloledb.dll     
   02-Aug-2004  19:18  2000.81.9051.0    385,024  Sqlsrv32.dll     
   02-Aug-2004  19:03  2000.81.9051.0    200,704  Sqlxmlx.dll      

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about data-at-execution parameters, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/aa198021(SQL.80).aspx (http://msdn2.microsoft.com/en-us/library/aa198021(SQL.80).aspx)
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://kbalertz.com/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft Data Access Components 2.7 Service Pack 1a
Keywords: 
kbqfe kbhotfixserver kbfix kbbug kbprb KB875519
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate