INF: How to Benefit From Autoexec Stored ProceduresLast reviewed: April 8, 1997Article ID: Q151366 |
The information in this article applies to:
SUMMARYThis article explains how to benefit from auto executing stored procedures to perform certain system administration tasks.
MORE INFORMATIONIn versions 6.0 and 6.5, you can have one or more stored procedures execute automatically when SQL Server starts. The stored procedures must be created by the system administrator (SA) and will execute under the SA account as a background process. During start-up, SQL Server checks for stored procedures in the master database that have been marked for start-up, launches the exception handler to handle any exception raised during the execution of the stored procedures and then writes an entry into the SQL Server errorlog. Execution of the stored procedures starts when the last database has been recovered at startup. The following are some system administration tasks that can benefit from this feature:
SQL Server 6.5 users can use the Database Maintenance Plan Wizard to perform the above mentioned system administration tasks.
|
Additional query words: sp_unmakestartup sp_makestartup sp_helpstartup
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |