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 2008 Forums
 Other SQL Server 2008 Topics
 How sql server handles exception in SP
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

18 Posts

Posted - 08/06/2014 :  05:47:23  Show Profile  Reply with Quote
Please can any one help me how sql server internally handles errors occurred in stored procedure.


Bustaz Kool
Flowing Fount of Yak Knowledge

1834 Posts

Posted - 08/06/2014 :  11:41:08  Show Profile  Reply with Quote
Have you looked up "BEGIN TRY" and BEGIN CATCH" in Books Online?

Too often we enjoy the comfort of opinion without the discomfort of thought. - John F. Kennedy
Go to Top of Page

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 08/12/2014 :  09:08:11  Show Profile  Visit jackv's Homepage  Reply with Quote
Within the BEGIN TRY .. BEGIn CATCH you can display various information about the error, such as ERROR_NUMBER() , ERROR_SEVERITY()

Jack Vamvas
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