Microsoft KB Archive/151111

From BetaArchive Wiki
Knowledge Base


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

Article ID: 151111

Article Last Modified on 10/16/2003



APPLIES TO

  • Microsoft SQL Server 6.0 Standard Edition
  • Microsoft SQL Server 6.5 Standard Edition



This article was previously published under Q151111

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: kbbug kbfix kbprogramming kbusage KB151111