BUG: Many UNIONs in One Query May Cause a 702 Error

ID: Q131908

The information in this article applies to: BUG# NT: 9828 (4.21a)

SYMPTOMS

A query that UNIONs together many SELECT statements may fail with a 702 error.

WORKAROUND

Rephrase the query so it does not use as many UNIONS, possibly by selecting into a temp table in separate queries.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 4.21a and 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

In the replication a SELECT from authors in pubs was UNIONed 42 times.

Additional query words: sql6 dblib cursor Windows NT

Keywords          : kbprg SSrvProg kbbug4.21a kbbug6.00 SSrvWinNT 
Version           : 4.21a 6.0
Platform          : WINDOWS

Last Reviewed: May 1, 1997