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 2008 Forums
 Other SQL Server 2008 Topics
 How sql server handles exception in SP
 New Topic  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

1827 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
2155 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  
 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