FIX: SELECT with Distinct and Self Loop Join May Cause 1203 Error Message (299470)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q299470
BUG #: 350899 (SHILOH_BUGS)
SYMPTOMS
A SELECT query that uses the DISTINCT function, which includes a self table join (joining a table to itself) by using nested loops, may fail with the following error message:
Error: 1203, Severity: 20, State: 1
Process ID 51 attempting to unlock unowned resource PAG: 8:1:797..
RESOLUTIONTo resolve this problem, obtain the latest service pack for 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
Force a different join type for the self-join such as a hash or merge join. In some cases, the problem may not occur if the table is reorganized by rebuilding an existing clustered index or adding a clustered index.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB299470 |
---|
|