BUG: Select from View with ANSI-Style Joins Causes Error 403 (154034)



The information in this article applies to:

  • Microsoft SQL Server 6.5

This article was previously published under Q154034

SYMPTOMS

Parser error 403 is returned when you Select from a view that involves an ANSI-style join and a distinct clause and where the condition involves all tables and a comparison of smallint or int columns. The following example illustrates the problem:
   SELECT distinct
   t11.x,t11.y
   FROM (t11 LEFT JOIN t21 ON t11.x = t21.x)
   WHERE t11.x =3
   and t21.x=3
   go

   select * from test
				

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information herein the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The error does not occur if the comparison is between two int columns or if the distinct clause is removed.

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbBug KB154034