FIX: SQL Server ODBC Driver Calls iswctype Excessively Causing Slower Performance (318375)



The information in this article applies to:

  • Microsoft Data Access Components 2.5
  • Microsoft Data Access Components 2.5 SP1
  • Microsoft Data Access Components 2.5 SP2
  • Microsoft Data Access Components 2.6
  • Microsoft Data Access Components 2.6 SP1
  • Microsoft Data Access Components 2.7
  • Microsoft ODBC Driver for SQL Server 2000 2000.80.194
  • Microsoft ODBC Driver for SQL Server 2000 2000.80.380

This article was previously published under Q318375

SYMPTOMS

When you profile an application that uses the SQL Server ODBC driver and calls the ODBC functions SQLPrepare, SQLExecute, and SQLExecDirect, you may observe an excessive amount of CPU time in the iswctype C run-time function.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

The English version of this fix should have the following file attributes or later:
Date         Time   Version           Size   File name      Platform
--------------------------------------------------------------------
11-FEB-2002  13:05  2000.80.577.0   29,252   Odbcbcp.dll    x86
01-FEB-2002  13:05  2000.80.577.0  475,217   Sqlsrv32.dll   x86 
01-FEB-2002  23:16  2000.80.577.0   90,112   Sqlsrv32.rll   x86
				
NOTE: This hotfix is intended for use only with MDAC 2.6 Service Pack 1 and Service Pack 2. Also note that MDAC 2.7 does not resolve this issue.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3.

Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbSQLServ2000sp3fix kbbug kbfix kbSQLServ2000preSP3fix KB318375