SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Error Handling in Storedproc in sqlserver 2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

11 Posts

Posted - 04/10/2013 :  09:27:15  Show Profile  Reply with Quote
Hi ,

I got a stored proc in which will i truncate a table load some data in to it. How do i know the procedure executed successfully and what are the best practices for error handling. its simple table with no constraints etc.

any help is much appreciated


Flowing Fount of Yak Knowledge

2241 Posts

Posted - 04/10/2013 :  09:40:54  Show Profile  Reply with Quote
Use TRY...CATCH mechanism for handling run-time exceptions
Refer this link....

Edited by - bandi on 04/10/2013 09:42:22
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000