By John Sheesley, Special to ZDNet Asia Thursday, December 11, 2008 11:55 AM
Here is an overview of the ways to execute SQL stored procedures or SQL Agent jobs on startup. The ability to run procedures or SQL Agent jobs on startup provides a great tool for database administration. Running procedures on startup gives the ability to run cleanup routines, maintenance, auditing, business rules, or run a SQL trace. The SQL Server service The SQL Server service (MSSQLSERVER) is the Windows service that runs the SQL Server database engine. This service provides the ability to execute stored procedures when the service is first started. You can specify this startup procedure by using the sp_procoption system stored procedure. In the following script, I use the code from a previous article where I outlined how to define your own custom trace scripts. Read more » |