BUG: SELECT INTO with Many UNION Clauses Returns Error 702ID: Q171416
|
A SELECT INTO statement that takes values from many tables using the UNION operator returns error 702 when the number of UNION clauses exceeds 21.
To work around this problem, split the UNION clauses to create temporary tables and then UNION the contents of the temporary tables.
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 following is the text of error 702:
Msg 702, Level 20, State 1
Memory request for xx bytes exceeds the size of single page of 2044
bytes. The SQL Server is terminating this process.
Msg 3701, Level 11, State 1,
Cannot drop the table '%s', because it doesn't exist in the system
catalogs.
Msg 2714, Level 16, State 1,
There is already an object named '%' in the database.
Keywords : kbusage SSrvTran_SQL kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 19, 1999