FIX:Lvl 16 Error on Temp Tbl From SP w/ > 64 Pgs May Cause AVID: Q135470
|
If you execute a stored procedure that makes reference to objects in TempDB with a query plan size of 64 pages or more after you get a Level 16 Error, a client access violation (AV) may occur.
All of the following conditions must exist for the client to AV:
Reduce the size of the stored procedures such that their individual
sizes are less than 64 pages.
EXAMPLE:
Assume that the following stored procedure has a size greater than 64
pages.
Create Procedure Get_Account_Information <Parameters> as
Begin
<Several Data Manipulation Statements say 1 through 10>
<Several Data Manipulation Statements say 11 through 20>
End
Create Procedure Get_Account_Information <Parameters> as
Begin
<Data Manipulation Statements 1 through 10>
exec Get_Account_Information_Part2 <Parameters>
/** Keep these parameters exactly the same as the exec
statement that called Get_Account_Information **/
End
Create Procedure Get_Account_Information_Part2 <Parameters> as
Begin
<Data Manipulation Statements 11 through 20>
End
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. This problem was corrected in Service Pack 1 for SQL Server version 6.0. For more information, contact your primary support provider.
Additional query words: sql6 sproc
Keywords : kbprg SSrvStProc kbbug6.00 kbfix6.00.sp1
Version : 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: April 21, 1999