Is there a way to start a stored procedure at predefined intervals?

I wanted the stored procedure to run at regular intervals every day. Is there a way to do the same on SQL Server 2005?

I know that we can create a batch file to run SP and schedule it with scheduled Windows tasks, but is there a way to do this from SQL Server itself?

+6
sql sql-server-2005
source share
3 answers

There is a separate service called SQL Agent that is created for this specific purpose: scheduling tasks related to SQL Server.

This is a Windows service that is initially disabled, so you need to enable it. Otherwise, all this is very simple: Management Studio has a nice interface for managing the Agent.

+7
source share

You can create jobs with SQL Server 2005

+1
source share

Use SQL Agent to schedule jobs.

See Creating Jobs

+1
source share

All Articles