Article ID: 953589 - Last Review: July 4, 2008 - Revision: 1.0
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
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.
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.
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.
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 Collapse this table Expand this table
File name File version File
size Date Time Platform Package_1_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,830 31-May-2008 18:37 Not
Applicable Package_2_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,997 31-May-2008 18:37 Not
Applicable Package_3_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_4_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_5_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_6_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,831 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,426 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_1~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,367 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,713 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,421 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,423 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,425 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,431 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,422 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,430 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,420 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,424 31-May-2008 18:37 Not
Applicable Update.mum Not
Applicable 3,571 31-May-2008 18:37 Not
Applicable X86_b0b720fc868c511639a0a0f01adeded4_31bf3856ad364e35_6.0.6000.20846_none_a296db78e62cd09d.manifest Not
Applicable 750 31-May-2008 18:37 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_0eb0d451060b379c.manifest Not
Applicable 18,035 31-May-2008 07:47 Not
Applicable Odbc32.dll 6.0.6000.20846 409,600 31-May-2008 06:16 x86
Windows Server 2008 and Windows Vista SP1, x86-based versions Collapse this table Expand this table
File name File version File
size Date Time Platform Package_1_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,830 31-May-2008 18:37 Not
Applicable Package_2_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,997 31-May-2008 18:37 Not
Applicable Package_3_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_4_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_5_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:37 Not
Applicable Package_6_for_kb953589~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,831 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,426 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_1~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,367 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,713 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,421 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,423 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,425 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,431 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,422 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,430 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe_0~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,420 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe~31bf3856ad364e35~x86~~6.0.1.0.mum Not
Applicable 1,424 31-May-2008 18:37 Not
Applicable Update.mum Not
Applicable 3,571 31-May-2008 18:37 Not
Applicable X86_4df4e017f4b3fd39cc917fc3a5b7053b_31bf3856ad364e35_6.0.6001.22191_none_ce716b93681adf77.manifest Not
Applicable 750 31-May-2008 18:37 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifest Not
Applicable 18,044 31-May-2008 08:24 Not
Applicable Odbc32.dll 6.0.6001.22191 409,600 31-May-2008 06:23 x86
Windows Vista, x64-based versions Collapse this table Expand this table
File name File version File
size Date Time Platform Amd64_4cc5b16d32939823a5b6b1fc27b788fb_31bf3856ad364e35_6.0.6000.20846_none_8ddee4edc024d610.manifest Not
Applicable 754 31-May-2008 18:37 Not
Applicable Amd64_ed6ab97b7490d474f64c0106e074ad39_31bf3856ad364e35_6.0.6000.20846_none_1dfc9000fb8b6bc1.manifest Not
Applicable 1,148 31-May-2008 18:37 Not
Applicable Amd64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_6acf6fd4be68a8d2.manifest Not
Applicable 18,451 31-May-2008 08:05 Not
Applicable Package_1_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,840 31-May-2008 18:37 Not
Applicable Package_2_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,277 31-May-2008 18:37 Not
Applicable Package_3_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_4_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_5_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_6_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,841 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,434 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_1~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,375 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,723 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,429 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,431 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,433 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,439 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,430 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,438 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,428 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,432 31-May-2008 18:37 Not
Applicable Update.mum Not
Applicable 3,597 31-May-2008 18:37 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6000.20846_none_0eb0d451060b379c.manifest Not
Applicable 18,035 31-May-2008 07:47 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifest Not
Applicable 18,044 31-May-2008 08:24 Not
Applicable Odbc32.dll 6.0.6000.20846 462,848 31-May-2008 06:34 x64 Odbc32.dll 6.0.6000.20846 409,600 31-May-2008 06:16 x86
Windows Server 2008 and Windows Vista SP1, x64-based versions Collapse this table Expand this table
File name File version File
size Date Time Platform Amd64_9f95e23bc725b923e5e8eaa1358c0870_31bf3856ad364e35_6.0.6001.22191_none_2acdf35888633024.manifest Not
Applicable 754 31-May-2008 18:37 Not
Applicable Amd64_bc37a3979b1cd429d7da677b92c56524_31bf3856ad364e35_6.0.6001.22191_none_7fc4f525a1f4c6f4.manifest Not
Applicable 1,148 31-May-2008 18:37 Not
Applicable Amd64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_6c7a9b86bbbc499e.manifest Not
Applicable 18,455 31-May-2008 08:49 Not
Applicable Package_1_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,840 31-May-2008 18:37 Not
Applicable Package_2_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,277 31-May-2008 18:37 Not
Applicable Package_3_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_4_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_5_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 2,113 31-May-2008 18:37 Not
Applicable Package_6_for_kb953589~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,841 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,434 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client_1~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,375 31-May-2008 18:37 Not
Applicable Package_for_kb953589_client~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,723 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,429 31-May-2008 18:37 Not
Applicable Package_for_kb953589_sc~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,431 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,433 31-May-2008 18:37 Not
Applicable Package_for_kb953589_server~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,439 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,430 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpesrv~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,438 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe_0~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,428 31-May-2008 18:37 Not
Applicable Package_for_kb953589_winpe~31bf3856ad364e35~amd64~~6.0.1.0.mum Not
Applicable 1,432 31-May-2008 18:37 Not
Applicable Update.mum Not
Applicable 3,597 31-May-2008 18:37 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifest Not
Applicable 18,044 31-May-2008 08:24 Not
Applicable Odbc32.dll 6.0.6001.22191 462,848 31-May-2008 06:44 x64 Odbc32.dll 6.0.6001.22191 409,600 31-May-2008 06:23 x86
Windows Server 2008, Itanium-based versions Collapse this table Expand this table
File name File version File
size Date Time Platform Ia64_07929ac0d6b1670f73dc594b1100a9b7_31bf3856ad364e35_6.0.6001.22191_none_fd8387a16ec73e08.manifest Not
Applicable 1,146 31-May-2008 18:36 Not
Applicable Ia64_69fb9ffa04a03fd25fce5813dfd18e2e_31bf3856ad364e35_6.0.6001.22191_none_38e72970665fa663.manifest Not
Applicable 752 31-May-2008 18:36 Not
Applicable Ia64_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105da3f9035ce164.manifest Not
Applicable 18,435 31-May-2008 08:26 Not
Applicable Package_1_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,835 31-May-2008 18:36 Not
Applicable Package_2_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 2,108 31-May-2008 18:36 Not
Applicable Package_3_for_kb953589~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 2,108 31-May-2008 18:36 Not
Applicable Package_for_kb953589_sc_0~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,425 31-May-2008 18:36 Not
Applicable Package_for_kb953589_sc~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,426 31-May-2008 18:36 Not
Applicable Package_for_kb953589_server_0~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,429 31-May-2008 18:36 Not
Applicable Package_for_kb953589_server~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,434 31-May-2008 18:36 Not
Applicable Package_for_kb953589_winpesrv_0~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,426 31-May-2008 18:36 Not
Applicable Package_for_kb953589_winpesrv~31bf3856ad364e35~ia64~~6.0.1.0.mum Not
Applicable 1,433 31-May-2008 18:36 Not
Applicable Update.mum Not
Applicable 2,423 31-May-2008 18:36 Not
Applicable X86_microsoft-windows-m..c-drivermanager-dll_31bf3856ad364e35_6.0.6001.22191_none_105c0003035ed868.manifest Not
Applicable 18,044 31-May-2008 08:24 Not
Applicable Odbc32.dll 6.0.6001.22191 815,104 31-May-2008 06:38 IA-64 Odbc32.dll 6.0.6001.22191 409,600 31-May-2008 06:23 x86
To work around this issue, pass a
value of
0 instead
of the SQL_NTS constant as the
StringLength
parameter.
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
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
(http://support.microsoft.com/kb/824684/
)
Description of the standard
terminology that is used to describe Microsoft software updates
APPLIES TO Windows Vista Service Pack 1 Windows Vista Home Premium 64-bit Edition Windows Vista Ultimate 64-bit Edition Windows Vista Business Windows Vista Business 64-bit Edition Windows Vista Enterprise Windows Vista Home Basic Windows Vista Home Premium Windows Vista Ultimate Windows Vista Home Basic 64-bit Edition Windows Vista Enterprise 64-bit Edition Windows Server 2008 Datacenter without Hyper-V Windows Server 2008 Enterprise without Hyper-V Windows Server 2008 for Itanium-Based Systems Windows Server 2008 Standard without Hyper-V Windows Server 2008 Datacenter Windows Server 2008 Enterprise Windows Server 2008 Standard kbautohotfix kbexpertiseadvanced kbfix kbqfe kbhotfixserver KB953589
Provide feedback on this information
Did this information solve your problem?
Was this information relevant?
What can we do to improve this information?
To protect your privacy, do not include contact information in your feedback.
Thank you! Your feedback is used to help us improve our support content. For more assistance options, please visit the
Help and Support Home Page .