Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

An access violation may occur if you pass an INTEGER value to the ValuePtr parameter of the SQLSetConnectAttr function in Windows Vista or in Windows Server 2008


View products that this article applies to.

Symptoms

Consider the following scenario:
  • On a Windows Vista-based computer, or on a Windows Server 2008-based computer, you run an application that uses the Open Database Connectivity (ODBC) API.
  • The application uses the SQLSetConnectAttr function to set an attribute.
  • You pass an SQL_NTS constant as the StringLength parameter to the SQLSetConnectAttr function.
In this scenario, an access violation may occur if you pass an INTEGER value to the ValuePtr parameter of the SQLSetConnectAttr function.

Note This issue does not occur in Microsoft Windows 2000 Server, in Windows XP, or in Windows Server 2003.

↑ Back to the top


Cause

This issue occurs because the ODBC API expects that the ValuePtr parameter is a string pointer instead of an INTEGER value. Therefore, the access violation occurs when the application specifies the SQL_NTS constant for an attribute and then assigns an INTEGER value to the ValuePtr parameter.

↑ Back to the top


Resolution

Hotfix information

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 this specific problem. 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: 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.

Important Windows Vista and Windows Server 2008 hotfixes are included in the same packages. However, only one of these products may be listed on the �Hotfix Request� page. To request the hotfix package that applies to both Windows Vista and Windows Server 2008, just select the product that is listed on the page.

Prerequisites

To apply this hotfix, the computer must run one of the following operating systems:
  • Windows Vista
  • Windows Vista Service Pack 1
  • Windows Server 2008

Restart requirement

You have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other previously released hotfixes.

Registry information

To use this hotfix, you do not have to make any changes to the registry.

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 item in Control Panel.
Windows Vista, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Package_1_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83031-May-200818:37Not Applicable
Package_2_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,99731-May-200818:37Not Applicable
Package_3_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_4_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_5_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_6_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83131-May-200818:37Not Applicable
Package_for_kb953589_client_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42631-May-200818:37Not Applicable
Package_for_kb953589_client_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,36731-May-200818:37Not Applicable
Package_for_kb953589_client~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,71331-May-200818:37Not Applicable
Package_for_kb953589_sc_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42131-May-200818:37Not Applicable
Package_for_kb953589_sc~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42331-May-200818:37Not Applicable
Package_for_kb953589_server_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42531-May-200818:37Not Applicable
Package_for_kb953589_server~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43131-May-200818:37Not Applicable
Package_for_kb953589_winpesrv_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42231-May-200818:37Not Applicable
Package_for_kb953589_winpesrv~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43031-May-200818:37Not Applicable
Package_for_kb953589_winpe_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42031-May-200818:37Not Applicable
Package_for_kb953589_winpe~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42431-May-200818:37Not Applicable
Update.mumNot Applicable3,57131-May-200818:37Not Applicable
X86_b0b720fc868c511639a0a0f01adeded4_31bf3856ad364e35_6.0.6000.20846_none_a296db78e62cd09d.manifestNot Applicable75031-May-200818:37Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_0eb0d451060b379c.manifestNot Applicable18,03531-May-200807:47Not Applicable
Odbc32.dll6.0.6000.20846409,60031-May-200806:16x86
Windows Server 2008 and Windows Vista SP1, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Package_1_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83031-May-200818:37Not Applicable
Package_2_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,99731-May-200818:37Not Applicable
Package_3_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_4_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_5_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83531-May-200818:37Not Applicable
Package_6_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,83131-May-200818:37Not Applicable
Package_for_kb953589_client_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42631-May-200818:37Not Applicable
Package_for_kb953589_client_1~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,36731-May-200818:37Not Applicable
Package_for_kb953589_client~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,71331-May-200818:37Not Applicable
Package_for_kb953589_sc_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42131-May-200818:37Not Applicable
Package_for_kb953589_sc~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42331-May-200818:37Not Applicable
Package_for_kb953589_server_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42531-May-200818:37Not Applicable
Package_for_kb953589_server~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43131-May-200818:37Not Applicable
Package_for_kb953589_winpesrv_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42231-May-200818:37Not Applicable
Package_for_kb953589_winpesrv~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,43031-May-200818:37Not Applicable
Package_for_kb953589_winpe_0~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42031-May-200818:37Not Applicable
Package_for_kb953589_winpe~31bf3856ad364e35~x86~~6.0.1.0.mumNot Applicable1,42431-May-200818:37Not Applicable
Update.mumNot Applicable3,57131-May-200818:37Not Applicable
X86_4df4e017f4b3fd39cc917fc3a5b7053b_31bf3856ad364e35_6.0.6001.22191_none_ce716b93681adf77.manifestNot Applicable75031-May-200818:37Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifestNot Applicable18,04431-May-200808:24Not Applicable
Odbc32.dll6.0.6001.22191409,60031-May-200806:23x86
Windows Vista, x64-based versions
File nameFile versionFile sizeDateTimePlatform
Amd64_4cc5b16d32939823a5b6b1fc27b788fb_31bf3856ad364e35_6.0.6000.20846_none_8ddee4edc024d610.manifestNot Applicable75431-May-200818:37Not Applicable
Amd64_ed6ab97b7490d474f64c0106e074ad39_31bf3856ad364e35_6.0.6000.20846_none_1dfc9000fb8b6bc1.manifestNot Applicable1,14831-May-200818:37Not Applicable
Amd64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_6acf6fd4be68a8d2.manifestNot Applicable18,45131-May-200808:05Not Applicable
Package_1_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,84031-May-200818:37Not Applicable
Package_2_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,27731-May-200818:37Not Applicable
Package_3_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_4_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_5_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_6_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,84131-May-200818:37Not Applicable
Package_for_kb953589_client_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43431-May-200818:37Not Applicable
Package_for_kb953589_client_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,37531-May-200818:37Not Applicable
Package_for_kb953589_client~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,72331-May-200818:37Not Applicable
Package_for_kb953589_sc_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,42931-May-200818:37Not Applicable
Package_for_kb953589_sc~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43131-May-200818:37Not Applicable
Package_for_kb953589_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43331-May-200818:37Not Applicable
Package_for_kb953589_server~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43931-May-200818:37Not Applicable
Package_for_kb953589_winpesrv_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43031-May-200818:37Not Applicable
Package_for_kb953589_winpesrv~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43831-May-200818:37Not Applicable
Package_for_kb953589_winpe_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,42831-May-200818:37Not Applicable
Package_for_kb953589_winpe~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43231-May-200818:37Not Applicable
Update.mumNot Applicable3,59731-May-200818:37Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_0eb0d451060b379c.manifestNot Applicable18,03531-May-200807:47Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifestNot Applicable18,04431-May-200808:24Not Applicable
Odbc32.dll6.0.6000.20846462,84831-May-200806:34x64
Odbc32.dll6.0.6000.20846409,60031-May-200806:16x86
Windows Server 2008 and Windows Vista SP1, x64-based versions
File nameFile versionFile sizeDateTimePlatform
Amd64_9f95e23bc725b923e5e8eaa1358c0870_31bf3856ad364e35_6.0.6001.22191_none_2acdf35888633024.manifestNot Applicable75431-May-200818:37Not Applicable
Amd64_bc37a3979b1cd429d7da677b92c56524_31bf3856ad364e35_6.0.6001.22191_none_7fc4f525a1f4c6f4.manifestNot Applicable1,14831-May-200818:37Not Applicable
Amd64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_6c7a9b86bbbc499e.manifestNot Applicable18,45531-May-200808:49Not Applicable
Package_1_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,84031-May-200818:37Not Applicable
Package_2_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,27731-May-200818:37Not Applicable
Package_3_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_4_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_5_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable2,11331-May-200818:37Not Applicable
Package_6_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,84131-May-200818:37Not Applicable
Package_for_kb953589_client_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43431-May-200818:37Not Applicable
Package_for_kb953589_client_1~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,37531-May-200818:37Not Applicable
Package_for_kb953589_client~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,72331-May-200818:37Not Applicable
Package_for_kb953589_sc_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,42931-May-200818:37Not Applicable
Package_for_kb953589_sc~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43131-May-200818:37Not Applicable
Package_for_kb953589_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43331-May-200818:37Not Applicable
Package_for_kb953589_server~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43931-May-200818:37Not Applicable
Package_for_kb953589_winpesrv_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43031-May-200818:37Not Applicable
Package_for_kb953589_winpesrv~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43831-May-200818:37Not Applicable
Package_for_kb953589_winpe_0~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,42831-May-200818:37Not Applicable
Package_for_kb953589_winpe~31bf3856ad364e35~amd64~~6.0.1.0.mumNot Applicable1,43231-May-200818:37Not Applicable
Update.mumNot Applicable3,59731-May-200818:37Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifestNot Applicable18,04431-May-200808:24Not Applicable
Odbc32.dll6.0.6001.22191462,84831-May-200806:44x64
Odbc32.dll6.0.6001.22191409,60031-May-200806:23x86
Windows Server 2008, Itanium-based versions
File nameFile versionFile sizeDateTimePlatform
Ia64_07929ac0d6b1670f73dc594b1100a9b7_31bf3856ad364e35_6.0.6001.22191_none_fd8387a16ec73e08.manifestNot Applicable1,14631-May-200818:36Not Applicable
Ia64_69fb9ffa04a03fd25fce5813dfd18e2e_31bf3856ad364e35_6.0.6001.22191_none_38e72970665fa663.manifestNot Applicable75231-May-200818:36Not Applicable
Ia64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105da3f9035ce164.manifestNot Applicable18,43531-May-200808:26Not Applicable
Package_1_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,83531-May-200818:36Not Applicable
Package_2_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable2,10831-May-200818:36Not Applicable
Package_3_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable2,10831-May-200818:36Not Applicable
Package_for_kb953589_sc_0~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42531-May-200818:36Not Applicable
Package_for_kb953589_sc~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42631-May-200818:36Not Applicable
Package_for_kb953589_server_0~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42931-May-200818:36Not Applicable
Package_for_kb953589_server~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,43431-May-200818:36Not Applicable
Package_for_kb953589_winpesrv_0~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,42631-May-200818:36Not Applicable
Package_for_kb953589_winpesrv~31bf3856ad364e35~ia64~~6.0.1.0.mumNot Applicable1,43331-May-200818:36Not Applicable
Update.mumNot Applicable2,42331-May-200818:36Not Applicable
X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifestNot Applicable18,04431-May-200808:24Not Applicable
Odbc32.dll6.0.6001.22191815,10431-May-200806:38IA-64
Odbc32.dll6.0.6001.22191409,60031-May-200806:23x86

↑ Back to the top


Workaround

To work around this issue, pass a value of 0 instead of the SQL_NTS constant as the StringLength parameter.

↑ Back to the top


Status

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

↑ Back to the top


More information

For more information about the SQLSetConnectAttr function, visit the following Microsoft Web site: For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kbautohotfix, kbexpertiseadvanced, kbfix, kbqfe, kbHotfixServer, KB953589

↑ Back to the top

Article Info
Article ID : 953589
Revision : 2
Created on : 10/8/2011
Published on : 10/8/2011
Exists online : False
Views : 477