The information in this article applies to:
SYMPTOMSIf you execute a SELECT statement and in the FROM clause you have a view that is aliased twice or more, and this VIEW has a UNION in its definition, you may encounter the following error message:
RESOLUTIONA supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next SQL Server service pack
that contains this fix. http://www.microsoft.com/support/supportnet/overview/overview.asp Files
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files. WORKAROUNDTo work around this problem create the view by selecting all the columns from the tables. STATUSMicrosoft has confirmed this to be a problem in SQL Server version 6.5. MORE INFORMATION
For example, consider a VIEW defined as follows in the PUBS database:
If the following statement is executed, it gives the above mentioned error message:
To work around this problem change the VIEW definition as follows:
Additional query words: select view error
Keywords : kbcode kbSQLServ650bug |
Last Reviewed: October 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |