BUG: DDL in Stored Procedure Can Cause Access Violation |
Q150460
Creating a stored procedure, view, default, rule, or trigger from a stored procedure with an EXEC command causes a handled exception that terminates the client thread if the command is greater than 255 bytes.
Create all non-table objects outside stored procedures.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. This problem was corrected in Microsoft SQL Server version 6.5.
The SQL Server 6.0 "Developer's Companion" (page 203, chapter 6) states
that a stored procedure can not create procedures, views, defaults, rules,
and triggers. If a stored procedure is created within a stored procedure
the following error will occur:
Msg 111, Level 15, State 1
CREATE PROCEDURE must be the first command in a query batch.
Additional query words: sproc sp view default trigger rule
Keywords : kbprogramming kbSQLServ650fix
Issue type :
Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600
|
Last Reviewed: February 17, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |