question

Asra avatar image
Asra asked

how to alter the sqlserver Agent job

I have SQL Server Agent job created, in which Email nofication is checked. I want to have a script where I can uncheck the email option.

Can any one please let me know how can i do this... pls help its very urgent!!!

sql-serversql-agent
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Queue avatar image
Queue answered

If you have management studio installed and you have access to that particular sql server, and also if you have relevant permissions then you should be able to edit the job straight by right click --> Properties --> Notifications and uncheck.

and through script means, you can do it using the system stored procedure sp_update_job with the help of "notify_level_email" option. Check the below for syntax.

http://msdn.microsoft.com/en-us/library/ms188745.aspx

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.