Article ID: 243502 - View products that this article applies to.
This article was previously published under Q243502
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56052 (SQLBUG_70)
When using SERIALIZABLE transactions isolation level, inserts on a table that has a compound clustered index defined are allowed while a SELECT is currently being run against that table with an ORDER BY..DESC clause that includes all columns of the clustered index.
The Isolation level SERIALIZABLE should lock the data set, preventing other users from updating or inserting rows into the data set until the transaction is complete. However, when the preceding stated conditions are true, phantoms are allowed.
Do not use ORDER BY..DESC on all the columns that are a part of the primary key.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561For more information, contact your primary support provider.
(http://support.microsoft.com/kb/254561/ )INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
To reproduce this problem, create the table using the following script:
Then, open two Query Analyzer connections and run the following scripts:
Contact us for more help