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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Error Handling in Storedproc in sqlserver 2005
 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

2242 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  
 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.02 seconds. Powered By: Snitz Forums 2000