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.

The SQLTables function of the SQL Server ODBC drivers that are included in Windows Vista and in Windows Server 2008 cannot handle the "%_%" pattern correctly


View products that this article applies to.

Symptoms

On a computer that is running Windows Vista or Windows Server 2008, the SQLTables function of the Microsoft SQL Server ODBC drivers that are included in the operating system cannot handle the "%_%" pattern correctly. When you call the SQLTables ODBC catalog function by specifying "%_%" as the table name search pattern, the function does not return correct results when a table name includes an underscore character (_).

For example, you have a database that contains two tables. One of the tables is named "Frank", and the other table is named "Fran_k". You call the SQLTables function to query tables whose names end in "_k". In this scenario, the results that are returned by the function represent both the "Frank" table and the "Fran_k" table. However, the results should represent only the "Fran_k" table.


Notes
  • This issue occurs only when you use the SQL Server ODBC drivers that are included in Windows Vista and in Windows Server 2008.
  • This issue does not occur when you use SQL Native Client or when you use the SQL Server ODBC drivers that are included in Windows XP and in Windows Server 2003.

↑ 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 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 website: 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, you must be running one of the following operating systems:
  • Windows Vista Service Pack 1 (SP1)
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008
  • Windows Server 2008 Service Pack 2 (SP2)
For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:

935791 How to obtain the latest Windows Vista service pack

For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

968849 How to obtain the latest service pack for Windows Server 2008

Registry information

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

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    VersionProductSR_LevelService branch
    6.0.600
    1.
    22xxx
    Windows Vista and Windows Server 2008SP1LDR
    6.0.600
    2.
    22xxx
    Windows Vista and Windows Server 2008SP2LDR
  • The MANIFEST files (.manifest) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MANIFEST files and the associated security catalog (.cat) files, are very important for maintaining the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTime
Sqlsrv32.dll6.0.6001.22857524,28818-Feb-201115:22
Sqlsrv32.dll6.0.6002.22592524,28818-Feb-201119:03
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTime
Sqlsrv32.dll6.0.6001.22857581,63218-Feb-201115:38
Sqlsrv32.dll6.0.6002.22592581,63218-Feb-201116:42
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTime
Sqlsrv32.dll6.0.6001.228571,085,44018-Feb-201115:31
Sqlsrv32.dll6.0.6002.225921,085,44018-Feb-201116:12

↑ 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 software update terminology, 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

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008
File nameX86_2b32dbf8106aa2a72704e3fd666be850_31bf3856ad364e35_6.0.6002.22592_none_16b4ddf041209f4c.manifest
File versionNot applicable
File size753
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameX86_e9a7acfcad795fa3fadb603a3f74e931_31bf3856ad364e35_6.0.6001.22857_none_1ccb6bf6c74fde30.manifest
File versionNot applicable
File size753
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameX86_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6001.22857_none_657f22f717d1b0a2.manifest
File versionNot applicable
File size11,284
Date (UTC)18-Feb-2011
Time (UTC)15:38
File nameX86_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6002.22592_none_673553bd151cf6d7.manifest
File versionNot applicable
File size11,284
Date (UTC)18-Feb-2011
Time (UTC)19:56
Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008
File nameAmd64_2362f7fa9e64491458884d2a79cd5a0e_31bf3856ad364e35_6.0.6001.22857_none_88b9ed732fa1d7f9.manifest
File versionNot applicable
File size1,154
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameAmd64_70769c990a0a65baa164666696ef6433_31bf3856ad364e35_6.0.6002.22592_none_584e72cf61cb0937.manifest
File versionNot applicable
File size1,154
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameAmd64_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6001.22857_none_c19dbe7ad02f21d8.manifest
File versionNot applicable
File size11,316
Date (UTC)18-Feb-2011
Time (UTC)15:55
File nameAmd64_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6002.22592_none_c353ef40cd7a680d.manifest
File versionNot applicable
File size11,316
Date (UTC)18-Feb-2011
Time (UTC)17:29
Additional files for all supported IA-64-based versions of Windows Server 2008
File nameIa64_8a7bf78b5bf64a2d7a9414749874fd2d_31bf3856ad364e35_6.0.6002.22592_none_eda23f1c0146eb25.manifest
File versionNot applicable
File size1,152
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameIa64_b18e608ad186754fb9b2b164046ac057_31bf3856ad364e35_6.0.6001.22857_none_eb11d995b4d59a42.manifest
File versionNot applicable
File size1,152
Date (UTC)18-Feb-2011
Time (UTC)22:16
File nameIa64_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6001.22857_none_6580c6ed17cfb99e.manifest
File versionNot applicable
File size11,300
Date (UTC)18-Feb-2011
Time (UTC)15:44
File nameIa64_microsoft-windows-m..qlserver-driver-dll_31bf3856ad364e35_6.0.6002.22592_none_6736f7b3151affd3.manifest
File versionNot applicable
File size11,300
Date (UTC)18-Feb-2011
Time (UTC)16:59

↑ Back to the top


Keywords: kb, kbautohotfix, kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 2477435
Revision : 1
Created on : 3/21/2017
Published on : 4/13/2011
Exists online : False
Views : 248