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
 Transact-SQL (2005)
 on error exit stored proc...

Author  Topic 

dnf999
Constraint Violating Yak Guru

253 Posts

Posted - 2008-10-23 : 07:01:18
Hi guys

can anybody point me to some code/documentation that will help me with error handling in SQL?

Basically I want the Stored proc to end if any queries within it come across an error.

i.e. I have an sp to update dates to a specific format, but it can error due to the date field not containing a valid date, but the rest of the SP will still continue.

Thanks!!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-23 : 07:14:04
http://www.sommarskog.se/error-handling-II.html
Go to Top of Page
   

- Advertisement -