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



The information in this article applies to:

  • Microsoft SQL Server 6.0
  • Microsoft SQL Server 6.5

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.

Modification Type:MajorLast Reviewed:10/16/2003
Keywords:kbBug kbfix kbusage KB158856