Article ID: 171416
Article Last Modified on 10/3/2003
APPLIES TO
- Microsoft SQL Server 6.5 Standard Edition
This article was previously published under Q171416
BUG #: 16990 (6.5)
SYMPTOMS
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.
WORKAROUND
To work around this problem, split the UNION clauses to create temporary tables and then UNION the contents of the temporary tables.
STATUS
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.
MORE INFORMATION
The following is the text of error 702:
Against SQL Server 6.5 Service Pack 2 (build 6.50.0240), the table from the SELECT INTO is created, but it is a 'stranded' table that cannot be
dropped. If you try to drop it, the table returns the following error:
A CREATE TABLE or SELECT INTO statement using the same name returns the following error:
Against SQL Server 6.5 Service Pack 3 (build 6.50.0258), the same behavior occurs, but the table can be dropped normally afterwards.
Keywords: kbbug kbusage KB171416