Step 1
Make sure that the SQL Server Agent is up and running. You can see it in the taskbar
icon.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vM7ekRbaVFipoVtLJJ5EuBkadenU_idTARKHt-ZYy704YY0KavB5WsA0I0ITmnkVkM7RKDWa0UfgrMdbshxC745TQzJTp0WSBO-DS6HqW1B4Gxn3YB_eZj81oIHzhWPpb8pwm9cIDtvzYM5fI=s0-d)
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
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_s2NSauuyW4-1-Gyt4kxBa_Ws6HPxjemkjM9M4A8xc6YMGqXzLUTA1hQ2oja44CSAHbc3A17Xciyqzig-48l2KH6L0Mvv4zOQUrdRZe1QMJ8qrjkS6lOM46nBmuGWJpdpiJhe7xOuvARvE=s0-d)
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.
![](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_s-TcX4jwEi4RsQYALSnUeMCqsts--dVXYpArXFXe2Vq6xIfzbBgNkVQdbGOANNKMhSk_so-38iGgLBikue1ab82xhRPA6v7KPLPMS3ymkPj0b4rrFSy8LcUjB7_qSamSq-J7A6PRivYpH41MUs=s0-d)
Job schedule added
No comments:
Post a Comment