BUG: Stored Proc Can Cause Thread-Level AV After Dump/LoadLast reviewed: May 2, 1997Article ID: Q150218 |
The information in this article applies to:
SYMPTOMSIf a stored procedure creates a temporary table and executes another stored procedure that creates a temporary table with the same table name, it can cause a thread-level access violation (AV) the first time this stored procedure is executed after the database is dumped and then restored from the dump.
CAUSELimited testing has shown that the scenario for reproducing this problem has a narrow scope:
must create a local temporary table with the same table name as the temporary table created in the first stored procedure.3. These two stored procedures must exist when the database dump was taken. Loading the database right after dump, and executing the first stored procedure will demonstrate the problem. Subsequent execution of these stored procedures will work fine. WORKAROUNDDo not create a temporary table with the same table name within two stored procedures if one stored procedure needs to call the other one.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: av
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |