Select the product you need help with
FIX: An empty string is returned when data is retrieved from a varchar (max) column by using SQL Native Client in Visual C++ .NET 2003 SP1Article ID: 954885 - View products that this article applies to. SYMPTOMSYou create an application that uses the CDatabase object or the CRecordset object to call the GetFieldValue function in Microsoft Visual C++ .NET 2003 Service Pack 1 (SP1). You use this application to retrieve data from a field by using SQL Native Client (SNAC)-ODBC-driver. The field is of the varchar (max) Microsoft SQL Server 2005 data type. When you run the application, an empty string is returned instead of the real value. Note The correct results are returned if the SQL ODBC driver is used. CAUSEThis problem occurs because the SNAC driver introduces a new data type that is not expected when the MFC 7.1 libraries are written. RESOLUTION A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix. If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
(http://support.microsoft.com/contactus/?ws=support)
PrerequisitesYou must have Visual Studio .NET 2003 SP1 installed to apply this hotfix.Restart requirementYou do not have to restart the computer after you apply this hotfix.Hotfix replacement informationThis hotfix does not replace any other hotfixes.File informationThe 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 item in Control Panel.Collapse this table
STATUSMicrosoft 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 the CDatabase class, visit the following Microsoft Web site: http://msdn.microsoft.com/de-de/library/2dhc1abk.aspx
For more information about the CRecordset class, visit the following Microsoft Web site:
(http://msdn.microsoft.com/de-de/library/2dhc1abk.aspx)
http://msdn.microsoft.com/de-de/library/92bcy0kw.aspx
For more information about Microsoft SQL Server Native Client, visit the following Microsoft Web site:
(http://msdn.microsoft.com/de-de/library/92bcy0kw.aspx)
http://msdn.microsoft.com/en-us/data/aa937733.aspx
(http://msdn.microsoft.com/en-us/data/aa937733.aspx)
PropertiesArticle ID: 954885 - Last Review: December 18, 2008 - Revision: 1.0
|


Back to the top








