ID: Q171868
The information in this article applies to:
A view that involves a UNION of two simple SELECT operations may cause an access violation (AV) when selected from, if one of the operands involves a SELECT with a NOT IN condition, as shown below:
select x from tbl1
union
select x from tbl2 where x not in (select x from tbl1)
To work around this problem, avoid using NOT IN with a subquery.
Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.5 and 6.5 Service Pack 1. 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.
Additional query words: gpf 6.5.201 sp sp1
Keywords : kbusage SSrvBCP SSrvGen SSrvGPF kbbug6.50 kbbug6.50.sp1 kbfix6.50.sp2
Version : 6.5 SP1
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix
Last Reviewed: August 1, 1997