Home All Groups Group Topic Archive Search About

SQL Server Job Notification

Author
20 Jul 2006 5:54 PM
ameen.abdullah
Hi Guys,

Is there any stored procedure or sql statement to add notification for
a job? The senerio is i have to create a job by using sps and i cant
find any procedure for enabling/disabling "write to application event
log" or autodelete job option which we have in notifications tab.

Author
20 Jul 2006 8:49 PM
Narayana Vyas Kondreddi
See sp_add_job in SQL Server Books Online. Also, the best way to get a
proper script for jobs is to create the job interactively in Enterprise
Manager, and then generate a script for that job. You can script a job by
right clicking on it, and clicking the script option.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/



<ameen.abdul***@gmail.com> wrote in message
Show quote
news:1153418082.101143.305250@i3g2000cwc.googlegroups.com...
> Hi Guys,
>
> Is there any stored procedure or sql statement to add notification for
> a job? The senerio is i have to create a job by using sps and i cant
> find any procedure for enabling/disabling "write to application event
> log" or autodelete job option which we have in notifications tab.
>
Author
24 Jul 2006 5:14 PM
ameen.abdullah
Thanks for the reply.. it was really helpful..

Narayana Vyas Kondreddi wrote:
Show quote
> See sp_add_job in SQL Server Books Online. Also, the best way to get a
> proper script for jobs is to create the job interactively in Enterprise
> Manager, and then generate a script for that job. You can script a job by
> right clicking on it, and clicking the script option.
> --
> HTH,
> Vyas, MVP (SQL Server)
> SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/
>
>
>
> <ameen.abdul***@gmail.com> wrote in message
> news:1153418082.101143.305250@i3g2000cwc.googlegroups.com...
> > Hi Guys,
> >
> > Is there any stored procedure or sql statement to add notification for
> > a job? The senerio is i have to create a job by using sps and i cant
> > find any procedure for enabling/disabling "write to application event
> > log" or autodelete job option which we have in notifications tab.
> >

AddThis Social Bookmark Button