FIX: ANSI Outer Join is Changed into an Inner Join in INSTEAD OF Trigger (308436)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q308436
BUG #: 353688 (SHILOH_BUGS)

SYMPTOMS

If an INSTEAD OF trigger contains a query that uses an ANSI outer join on the inserted and deleted tables, the outer join is implicitly turned into an inner join and produces incorrect results.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

WORKAROUND

To work around this behavior, use these old, nonstandard outer join operators in the WHERE clause of the query:

*=

-and-

=*

STATUS

Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Modification Type:MajorLast Reviewed:10/16/2003
Keywords:kbbug kbfix kbSQLServ2000preSP2Fix KB308436