Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Stored procedure notification

Author  Topic 

bendertez
Yak Posting Veteran

94 Posts

Posted - 2007-11-19 : 10:54:10
Hello

I have created a stored procedure that has been running successfully everyday for the last couple of months now.

Is there anyway that I can get the server to e-mail me once the procedure has been run, possibly with the results??

The procedure is really just a complicated select statement that picks up new clients on a daily basis.

Can this be done using the notification utility or by scheduling a job or something to achieve this??

Thanks

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-11-19 : 12:15:11
you can schedule a job to run the proc..use database mail to email the results..check out books online on hot to setup/use Database Mail.

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-11-19 : 13:47:07
Well how is this sproc being called?

If it's a scheduled job, then why do you need notification?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -