O'Reilly logo

Microsoft® SQL Server 2008 R2 Unleashed by Alex T. Silverstein, Chris Gallelli, Paul Bertucci, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Startup Procedures

A SQL Server administrator can create stored procedures that are marked for execution automatically whenever SQL Server starts. They are often referred to as startup procedures. Startup procedures are useful for performing housekeeping-type tasks or starting up a background process when SQL Server starts. Some possible uses for startup procedures include the following:

• Automatically perform system or maintenance tasks in tempdb, such as creating a global temporary table.

• Enable custom SQL Server Profiler traces automatically whenever SQL Server is running. (For more information on SQL Server Profiler traces, see Chapter 6.)

• Automatically start other external processes on the SQL Server machine, using xp_cmdshell. (Using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required