SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

Mahavirjadhav
Starting Member

India
16 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.

Mahavir

Bustaz Kool
Flowing Fount of Yak Knowledge

USA
1693 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

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2062 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
--------------------
http://www.sqlserver-dba.com
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.03 seconds. Powered By: Snitz Forums 2000