INF: Creating Stored Procedures That Modify System TablesLast reviewed: April 25, 1997Article ID: Q45137 |
The information in this article applies to:
- Microsoft SQL Server version 4.2 for OS/2 It is possible to write a stored procedure that alters system tables. The "allow updates" flag must be set on with sp_configure (or with SAF) and the RECONFIGURE WITH OVERRIDE statement issued when the stored procedure is created; otherwise, it won't compile. Once the procedure is compiled, turn the "allow updates" flag back off and issue the RECONFIGURE WITH OVERRIDE statement again. Such procedures should be fully tested because an error could easily result in data loss or corruption.
|
Additional query words: Transact-SQL Triggers rules
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |