FIX:DECLARE CURSOR on Temp Table with FOR UPDATE Causes AV

ID: Q151111


The information in this article applies to:

BUG#: 15086 (6.00)

SYMPTOMS

A DECLARE CURSOR statement that has a FOR UPDATE clause with multiple columns in the column_list can generate a handled access violation if the table in the SELECT clause is a temporary table.


WORKAROUND

Do not use the FOR UPDATE clause for more than one column in case of a temporary table. Use a permanent table if more than one column is absolutely necessary in the FOR UPDATE clause.


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.


Keywords          : kbprg kbusage SSrvProg kbbug6.50 kbfix6.50.sp1 
Version           : 6.0 6.5
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 26, 1999