Search 
DailyCoding > Database

Step by Step Guide to Add a SQL Job in SQL Server 2005

Describes Step by Step process of adding a sql job in SQL Server 2005
Author admin on Jul 10, 2008 3 Comments
Rate it    (Rated 0 by 0 people)
346 Views

This is about adding a new SQL Jobs in the Sql Server 2005.

Step 1

Make sure that the SQL Server Agent is up and running. You can see it in the taskbar icon.

If SQL Server Agent is not running, start it from the SQL Server Configuration Manger

You can also start the SQL Server Agent from the command prompt using the command netstart

net start "SQL Server Agent (<instance name>)"
e.g net start "SQL Server Agent (SQLSERVER01)"

Step 2

Connect to the database engine of SQL server using SQL Server Management Studio.

Step 3

Expand the SQL Server Agent. You will see a Jobs folder over there. Right click on jobs and choose Add New.

Step 4

A New Job popup will appear. Specify the name of the job.

Step 5

Cilck next on the "Steps" in the left menu. A sql job can contain one or more steps. A step might be simply an sql statement or a stored procedure call. Add you step here

Job step added

Step 5

Cilck next on the "Schedules" in the left menu. A sql job can contain one or more schedules. A schedule is basically the time at which sql job will run it self. You can specify recurring schedules also.

Job schedule added

You sql job is ready now. However there are other thing you can use if needed like Alert, Notifications etc.

SQL

Discussion

Prasanna On Jul 12, 2008 08:00 AM
Step-4 seems to have incomplete information.
In Step-5, where is "Next" button?

Daily Coder On Jul 12, 2008 08:58 AM
Prasanna, 2 images were shuffled which created the confusion. This is corrected now. Thanks.

Rizwan On Aug 11, 2008 11:22 PM
This is really very simple and very useful

I really apprecicate it

Cheers
rizwan

Leave a Comment

Name
Email Address
Web Site
© Copyright 2008 Daily Coding • All rights reserved