BUG: Declare Cursor May Fail with Memory Error 702ID: Q167609
|
A declare cursor statement with a select list consisting of a number of coalesce statements may fail with message 702, "memory request exceeds size of a page."
To work around this problem, select into a temporary table and declare the cursor on the temporary table.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The scenario tested in this case had 26 coalesce statements involving the
aggregate function sum, as in the following:
coalesce(sum(x),0)
Keywords : kbusage SSrvGen kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 9, 1999