FIX: SELECT with Timestamp Column That Uses FOR XML AUTO May Fail with Stack Overflow or AV (318045)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q318045 BUG #: 356642 (SHILOH_BUGS) SYMPTOMS A SELECT query that includes a table with a timestamp column that uses the FOR XML AUTO clause may encounter a stack
overflow exception or handled access violation (AV). 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 NOTE: The following hotfix was created before the release of Microsoft
SQL Server 2000 Service Pack 3. The English version of this fix
should have the following file attributes or later:
Date Time Version Size File name
---------------------------------------------------------
12-FEB-2002 23:28 8.00.0578 7,269 KB Sqlservr.exe
NOTE:Because of file dependencies, the most recent hotfix or feature that
contains the files may also contain additional
files. WORKAROUND To avoid this problem, cast the timestamp column to a bigint value. For instance, you can modify the sample code shown in the
"More Information" section as follows:
SELECT
ColA As 'ColA' , ColB As 'ColB', ColC As 'ColC',
Convert(bigint,ColTS) As 'Col Timestamp'
FROM TblA
WHERE ColA = 2536
FOR XML AUTO
STATUSMicrosoft has confirmed that this
is a problem in Microsoft SQL Server 2000.
This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/27/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbSQLServ2000sp3fix kbbug kbfix kbSQLServ2000preSP3fix KB318045 |
---|
|