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 2000 Forums
 Transact-SQL (2000)
 Report Sproc Errors

Author  Topic 

mdelgado
Posting Yak Master

141 Posts

Posted - 2003-08-14 : 07:54:36
Good morning all...

I have a stored procedure that I use to execute dozens of other sprocs every morning. How can I have that 'Parent' sproc send me an email reporting if one of the 'Child' sprocs failed along with the error message, sproc name and line number?

Thank you.

Amethystium
Aged Yak Warrior

701 Posts

Posted - 2003-08-14 : 08:24:32
Read about using xp_sendmail in BOL. Plenty of information there to get you started.

------------------------------------------------------------------------------
I enjoy using SQL Server but I am not part of the Microsoft fanboy club! NEVER!!
Go to Top of Page
   

- Advertisement -