BUG: Complex Query May Cause 1521 ErrorLast reviewed: April 30, 1997Article ID: Q124978  | 
	
	
The information in this article applies to:
 
 SYMPTOMSUnder certain conditions SQL Server may return error 1521: 
 Sort failed because a table in tempdb used for the processing of the query had a bad data page count.This generally occurs when processing very complex queries that may involve any of the following: multiple tables, the use of dynamic indexes, internal sorting, or heavy use of tempdb. 
 WORKAROUNDIn some cases this problem can be resolved by executing one or more of the following: 
 
 STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. 
  | 
	
	Additional query words: 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |