Knowledge Base

FIX: Err 107 Creating VIEW with a UNION & Correlated Subquery

Article ID: 158856

Article Last Modified on 10/16/2003


APPLIES TO


This article was previously published under Q158856
BUG #: 16081 (sqlbug_65 sql 6.5)
       15660 (sqlbug_60 sql 6.0)
		

SYMPTOMS

When you attempt to create a VIEW that contains a UNION clause and a correlated subquery, the creation of the VIEW fails with error 107.

WORKAROUND

To work around this problem, change your VIEW definition, and avoid using both a UNION and a correlated subquery.

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 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

Keywords: kbbug kbfix kbusage KB158856