Knowledge Base

FIX: Incorrect results from sysprocesses with SQL Server 7.0 ODBC driver when connected to SQL Server 6.5

Article ID: 194665

Article Last Modified on 3/14/2006


APPLIES TO


This article was previously published under Q194665
BUG #: 17693 (SQLBUG_65)

SYMPTOMS

If connected to a version 6.5 SQL Server, any query containing the login_time or last_batch columns from the sysprocesses table and submitted using a 7.0 ODBC driver (3.70.xxxx) will return incorrect results for these columns.

CAUSE

These columns are incorrectly described as char(8) rather than datetime; however, the TDS stream actually returns them as datetime data.

In version 7.0, the on-disk format for datetime data is different than in version 6.5, which results in the data being garbled during the transfer.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base:

197177 INF: How to Obtain SQL Server 6.5 Service Pack 5a

For more information, contact your primary support provider.

Additional query words: sp sp5prodsql sp_who sysprocesses ODBC sqlsrv32

Keywords: kbbug kbfix kbsqlserv650sp5fix KB194665