FIX: SELECT on Tables With Indexes Can Cause Access Violation in Update Stats |
Q138595
A simple SELECT statement with a subquery containing an OR clause can cause a thread-level access violation. The data can be bulk-copied into the tables and the query run successfully; once the statistics for the tables are updated, however, a Db-library error is produced for each execution of the query.
The following conditions must be met for the access violation to occur:
Drop the indexes on the columns that are qualified by the OR clause. If you must have the indexes, you can have an index (clustered, simple, or non-clustered) on any one of the columns qualified in the OR clause in the query. Having indexes on both columns, however, results in the access violation.
Microsoft has confirmed this to be a problem in SQL Server version 6.0. This problem was corrected in Service Pack 2 for SQL Server version 6.0. For more information, contact your primary support provider.
Additional query words: sql6 windows nt transact q_beforeaft
Keywords : kbprogramming
Issue type : kbbug
Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600
|
Last Reviewed: February 23, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |