<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 &#8211; Explanation of TRY…CATCH and ERROR Handling With RAISEERROR Function</title>
	<atom:link href="http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:36:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: jjayakumar</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-241134</link>
		<dc:creator><![CDATA[jjayakumar]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 05:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-241134</guid>
		<description><![CDATA[I m using Sql 2000 , I  Raised the Error in Trigger it is user Defined Error How to Print that Error Message in Stored Procedure
During Insert
RAISERROR (&#039;BOTH ItemID and SubCompID have value&#039;,16, 1)
I Need to print &#039;BOTH ItemID and SubCompID have value&#039; In Stored Procedure]]></description>
		<content:encoded><![CDATA[<p>I m using Sql 2000 , I  Raised the Error in Trigger it is user Defined Error How to Print that Error Message in Stored Procedure<br />
During Insert<br />
RAISERROR (&#8216;BOTH ItemID and SubCompID have value&#8217;,16, 1)<br />
I Need to print &#8216;BOTH ItemID and SubCompID have value&#8217; In Stored Procedure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ROYMON</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-197599</link>
		<dc:creator><![CDATA[ROYMON]]></dc:creator>
		<pubDate>Thu, 17 Nov 2011 09:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-197599</guid>
		<description><![CDATA[AWESOME THANKS..............]]></description>
		<content:encoded><![CDATA[<p>AWESOME THANKS&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 17 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-148830</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 17 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Sun, 17 Jul 2011 01:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-148830</guid>
		<description><![CDATA[[...] RaiseError generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message dynamically. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY…CATCH construct. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] RaiseError generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message dynamically. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY…CATCH construct. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-134951</link>
		<dc:creator><![CDATA[Nitin]]></dc:creator>
		<pubDate>Wed, 18 May 2011 06:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-134951</guid>
		<description><![CDATA[Hi,

Plzz See following Table structure

CREATE TABLE ERRORLOG(
	[DATETIME] DATETIME,
	USERID VARCHAR(15),
	PROCEDURENAME VARCHAR(200),
	PARAMETERVALUE VARCHAR(500),
	ERRORMSG VARCHAR(200),
	ERRORPOSITION VARCHAR(100)
	)

in that table structure
i got [DATETIME], my USERID,current PROCEDURENAME, PARAMETERVALUE, ERRORMSG..
but i can not find out 
Q. How to fetch ErrorPosition ( ie Line Number) of Current Procedure?????
--&gt; i use ERROR_LINE() in catch block but it is Shown only 1 value for any error is occurred.

if any1 get ans reply immediately.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Plzz See following Table structure</p>
<p>CREATE TABLE ERRORLOG(<br />
	[DATETIME] DATETIME,<br />
	USERID VARCHAR(15),<br />
	PROCEDURENAME VARCHAR(200),<br />
	PARAMETERVALUE VARCHAR(500),<br />
	ERRORMSG VARCHAR(200),<br />
	ERRORPOSITION VARCHAR(100)<br />
	)</p>
<p>in that table structure<br />
i got [DATETIME], my USERID,current PROCEDURENAME, PARAMETERVALUE, ERRORMSG..<br />
but i can not find out<br />
Q. How to fetch ErrorPosition ( ie Line Number) of Current Procedure?????<br />
&#8211;&gt; i use ERROR_LINE() in catch block but it is Shown only 1 value for any error is occurred.</p>
<p>if any1 get ans reply immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-68756</link>
		<dc:creator><![CDATA[Ravi]]></dc:creator>
		<pubDate>Tue, 04 May 2010 05:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-68756</guid>
		<description><![CDATA[This nice explanation of error handling message 
Thanks.]]></description>
		<content:encoded><![CDATA[<p>This nice explanation of error handling message<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Gilhotra</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-63361</link>
		<dc:creator><![CDATA[Ashish Gilhotra]]></dc:creator>
		<pubDate>Sat, 20 Mar 2010 07:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-63361</guid>
		<description><![CDATA[@mayank
please let us see what script you write for this.]]></description>
		<content:encoded><![CDATA[<p>@mayank<br />
please let us see what script you write for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAYANK</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-63360</link>
		<dc:creator><![CDATA[MAYANK]]></dc:creator>
		<pubDate>Sat, 20 Mar 2010 07:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-63360</guid>
		<description><![CDATA[i have a problem in inserting data into table.i have given datatype as numeric(5,2) for a column but server is showing error -arithmetic overflow converting numeric datatype to numeric.i am working on sql server.]]></description>
		<content:encoded><![CDATA[<p>i have a problem in inserting data into table.i have given datatype as numeric(5,2) for a column but server is showing error -arithmetic overflow converting numeric datatype to numeric.i am working on sql server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthikshanth</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-55083</link>
		<dc:creator><![CDATA[karthikshanth]]></dc:creator>
		<pubDate>Fri, 21 Aug 2009 07:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-55083</guid>
		<description><![CDATA[ALso, pls note while giving the range of sysmessages. we need to make sure, we are not providing anything in the system error message range numbers for Raiserror.]]></description>
		<content:encoded><![CDATA[<p>ALso, pls note while giving the range of sysmessages. we need to make sure, we are not providing anything in the system error message range numbers for Raiserror.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 7 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-47482</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers - Part 7 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-47482</guid>
		<description><![CDATA[[...] RaiseError generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message dynamically. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY&#8230;CATCH construct. (Read More Here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] RaiseError generates an error message and initiates error processing for the session. RAISERROR can either reference a user-defined message stored in the sys.messages catalog view or build a message dynamically. The message is returned as a server error message to the calling application or to an associated CATCH block of a TRY&#8230;CATCH construct. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subodh Singh</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-44038</link>
		<dc:creator><![CDATA[Subodh Singh]]></dc:creator>
		<pubDate>Mon, 03 Nov 2008 16:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-44038</guid>
		<description><![CDATA[Please note one subtle but important difference between what you wrote and what the developer tried: the spelling of RAISERROR.

There is only one E in the function, whereas the developer thinks there are two (RAISEERROR).

Hope this explains.]]></description>
		<content:encoded><![CDATA[<p>Please note one subtle but important difference between what you wrote and what the developer tried: the spelling of RAISERROR.</p>
<p>There is only one E in the function, whereas the developer thinks there are two (RAISEERROR).</p>
<p>Hope this explains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sham</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-42939</link>
		<dc:creator><![CDATA[Sham]]></dc:creator>
		<pubDate>Thu, 18 Sep 2008 12:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-42939</guid>
		<description><![CDATA[Hi Kshitij,

You need to include The commit Transaction in begin try and end try block.
In Begin catch and end catch block include Rollback transaction.]]></description>
		<content:encoded><![CDATA[<p>Hi Kshitij,</p>
<p>You need to include The commit Transaction in begin try and end try block.<br />
In Begin catch and end catch block include Rollback transaction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kshitij</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-42363</link>
		<dc:creator><![CDATA[kshitij]]></dc:creator>
		<pubDate>Wed, 03 Sep 2008 17:27:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-42363</guid>
		<description><![CDATA[I am using SQL 2000. I have a RAISEERROR statement in my SP which cause transaction to be rollback in .net. So when I try to commit the transaction in code, it gives error &quot;The COMMIT TRANSACTIN request has no corresponding BEGIN TRANSACTION.&#039;
Any idea ?]]></description>
		<content:encoded><![CDATA[<p>I am using SQL 2000. I have a RAISEERROR statement in my SP which cause transaction to be rollback in .net. So when I try to commit the transaction in code, it gives error &#8220;The COMMIT TRANSACTIN request has no corresponding BEGIN TRANSACTION.&#8217;<br />
Any idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh.E</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-41055</link>
		<dc:creator><![CDATA[Rajesh.E]]></dc:creator>
		<pubDate>Wed, 30 Jul 2008 11:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-41055</guid>
		<description><![CDATA[Thanks for help me to get Raise Error Method]]></description>
		<content:encoded><![CDATA[<p>Thanks for help me to get Raise Error Method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satheesh</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-39326</link>
		<dc:creator><![CDATA[satheesh]]></dc:creator>
		<pubDate>Wed, 18 Jun 2008 14:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-39326</guid>
		<description><![CDATA[It is very usefull.This small example explains the new feature in Sql Server 2005]]></description>
		<content:encoded><![CDATA[<p>It is very usefull.This small example explains the new feature in Sql Server 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Farrell</title>
		<link>http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-16393</link>
		<dc:creator><![CDATA[Patrick Farrell]]></dc:creator>
		<pubDate>Thu, 25 Oct 2007 15:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%e2%80%a6catch-and-error-handling-with-raiseerror-function/#comment-16393</guid>
		<description><![CDATA[Thanks for the easy to follow reference on using TRY CATCH in Sql Server Pinal Dave.  This was exactly what I was looking for.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the easy to follow reference on using TRY CATCH in Sql Server Pinal Dave.  This was exactly what I was looking for.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

