<?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; ERROR Messages &#8211; sysmessages error severity level</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Renuka</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-428402</link>
		<dc:creator><![CDATA[Renuka]]></dc:creator>
		<pubDate>Wed, 27 Feb 2013 09:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-428402</guid>
		<description><![CDATA[Hi Pinal,

We have received the below error on our SQL Server Errorlog (SQL 2008 R2)
Could you please advice on what could be the problem?

Error: 17836, Severity: 20, State: 14.
Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 163.164.107.201]]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>We have received the below error on our SQL Server Errorlog (SQL 2008 R2)<br />
Could you please advice on what could be the problem?</p>
<p>Error: 17836, Severity: 20, State: 14.<br />
Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library. [CLIENT: 163.164.107.201]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Cannon</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-341842</link>
		<dc:creator><![CDATA[Alan Cannon]]></dc:creator>
		<pubDate>Fri, 07 Sep 2012 19:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-341842</guid>
		<description><![CDATA[Alternate ? on the Topic of SYS.Messages... We create custom messages in sys.messages for each specific Customer/utilization purpose. is there a way to maintain these messages Specifically for the Database &quot;NAME&quot;,BrokerID or other method when we bring back the backups to our central server.(Other then Multiple instances)
Thanks
Alan C]]></description>
		<content:encoded><![CDATA[<p>Alternate ? on the Topic of SYS.Messages&#8230; We create custom messages in sys.messages for each specific Customer/utilization purpose. is there a way to maintain these messages Specifically for the Database &#8220;NAME&#8221;,BrokerID or other method when we bring back the backups to our central server.(Other then Multiple instances)<br />
Thanks<br />
Alan C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukunda</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-340468</link>
		<dc:creator><![CDATA[Mukunda]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 09:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-340468</guid>
		<description><![CDATA[Hi,

I have a dumb question here, On my SQL 2008 instance, the error message doesn&#039;t read &quot;Server: Msg 245&quot;, instead it just reads &quot;Msg 245&quot; etc. Notice the &quot;Server:&quot; missing. Is there a way i can get it to add the server:? This is needed for a validation being done with our code.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a dumb question here, On my SQL 2008 instance, the error message doesn&#8217;t read &#8220;Server: Msg 245&#8243;, instead it just reads &#8220;Msg 245&#8243; etc. Notice the &#8220;Server:&#8221; missing. Is there a way i can get it to add the server:? This is needed for a validation being done with our code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kuldeep singh</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-321647</link>
		<dc:creator><![CDATA[kuldeep singh]]></dc:creator>
		<pubDate>Mon, 30 Jul 2012 06:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-321647</guid>
		<description><![CDATA[hello sir 
i am new In sqlservver Quiry. i am getting error on on update a result:

&quot;Error 50013, severity 16, state 1 was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the user-defined message is added using sp_addmessage. &quot;]]></description>
		<content:encoded><![CDATA[<p>hello sir<br />
i am new In sqlservver Quiry. i am getting error on on update a result:</p>
<p>&#8220;Error 50013, severity 16, state 1 was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the user-defined message is added using sp_addmessage. &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: veeko</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-257099</link>
		<dc:creator><![CDATA[veeko]]></dc:creator>
		<pubDate>Mon, 27 Feb 2012 03:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-257099</guid>
		<description><![CDATA[Hi, I got an error 9003, severity 17, state 1. Can&#039;t find out what resource caused this error. Need help, please.

This error is happened when log shipping failed.]]></description>
		<content:encoded><![CDATA[<p>Hi, I got an error 9003, severity 17, state 1. Can&#8217;t find out what resource caused this error. Need help, please.</p>
<p>This error is happened when log shipping failed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-141297</link>
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 09:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-141297</guid>
		<description><![CDATA[Pinal,
Your articles are always useful and highly precise.
Thanks for sharing your Knowledge!
I would also like to mention an older article on this subject:
http://www.sommarskog.se/error-handling-I.html]]></description>
		<content:encoded><![CDATA[<p>Pinal,<br />
Your articles are always useful and highly precise.<br />
Thanks for sharing your Knowledge!<br />
I would also like to mention an older article on this subject:<br />
<a href="http://www.sommarskog.se/error-handling-I.html" rel="nofollow">http://www.sommarskog.se/error-handling-I.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bibhu</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-117836</link>
		<dc:creator><![CDATA[Bibhu]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 07:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-117836</guid>
		<description><![CDATA[Hi,

I need a help on sql sever error log.

Problem Description:

My production site was down because a simple select query was taking too much time and sql server connection time out throws.
Indexes are there on the table but while investigating we found the table scan due to the query was taking time,so what we did we create another index and it worked out.

My Question:

How I will get the error report or log in sql server.

Note: I read in some blog sql server only maintain log for last 6 session.

Please provide me the table name where I will get the correct root cause on a particular date.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I need a help on sql sever error log.</p>
<p>Problem Description:</p>
<p>My production site was down because a simple select query was taking too much time and sql server connection time out throws.<br />
Indexes are there on the table but while investigating we found the table scan due to the query was taking time,so what we did we create another index and it worked out.</p>
<p>My Question:</p>
<p>How I will get the error report or log in sql server.</p>
<p>Note: I read in some blog sql server only maintain log for last 6 session.</p>
<p>Please provide me the table name where I will get the correct root cause on a particular date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-89112</link>
		<dc:creator><![CDATA[Amit]]></dc:creator>
		<pubDate>Thu, 23 Sep 2010 13:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-89112</guid>
		<description><![CDATA[Hello Pinal,

I have one requirement for error handling where I want to capture a particular record that caused the error and due to which column the error occured.

For Example

If my destination column is int and I am trying to insert a char value from the source table. In this case I want to find out the column and name of the source table and that particular record(any column value for that record)

Please let me know your suggestion on this.]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>I have one requirement for error handling where I want to capture a particular record that caused the error and due to which column the error occured.</p>
<p>For Example</p>
<p>If my destination column is int and I am trying to insert a char value from the source table. In this case I want to find out the column and name of the source table and that particular record(any column value for that record)</p>
<p>Please let me know your suggestion on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-80992</link>
		<dc:creator><![CDATA[Stephan]]></dc:creator>
		<pubDate>Tue, 20 Jul 2010 23:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-80992</guid>
		<description><![CDATA[Error state is basically to differentiate between the same error message being thrown from different spots.

A bad example:

Say you check for a positive number X at the beginning of the procedure.  If it&#039;s negative you throw &quot;X is negative&quot; with state 1.

At the end of your procedure, you check X again and if it&#039;s negative you throw &quot;X is negative&quot; and set the state to any number 2-127 just so that if you were to look it up in an errors listing that you know if it&#039;s state 1 it&#039;s because X started negative, if it&#039;s state 2 it&#039;s because X ended negative.

In most cases you will change your text string but you may want the string to represent the type of error and the state to differentiate between each place the error may be generated.

In short I cant think of a useful application and it will almost always be the same number.]]></description>
		<content:encoded><![CDATA[<p>Error state is basically to differentiate between the same error message being thrown from different spots.</p>
<p>A bad example:</p>
<p>Say you check for a positive number X at the beginning of the procedure.  If it&#8217;s negative you throw &#8220;X is negative&#8221; with state 1.</p>
<p>At the end of your procedure, you check X again and if it&#8217;s negative you throw &#8220;X is negative&#8221; and set the state to any number 2-127 just so that if you were to look it up in an errors listing that you know if it&#8217;s state 1 it&#8217;s because X started negative, if it&#8217;s state 2 it&#8217;s because X ended negative.</p>
<p>In most cases you will change your text string but you may want the string to represent the type of error and the state to differentiate between each place the error may be generated.</p>
<p>In short I cant think of a useful application and it will almost always be the same number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-77224</link>
		<dc:creator><![CDATA[vijay]]></dc:creator>
		<pubDate>Tue, 22 Jun 2010 03:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-77224</guid>
		<description><![CDATA[Correct
1 =&gt; Also log to eventvwr (in addition to sql erro logs)
0 =&gt; Only sql logs.

get a test server.
downlaod the eval edition
dirty your hands :-)]]></description>
		<content:encoded><![CDATA[<p>Correct<br />
1 =&gt; Also log to eventvwr (in addition to sql erro logs)<br />
0 =&gt; Only sql logs.</p>
<p>get a test server.<br />
downlaod the eval edition<br />
dirty your hands :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gun</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-62728</link>
		<dc:creator><![CDATA[Gun]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 11:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-62728</guid>
		<description><![CDATA[Severity 16: 
What does exactly mean &quot;can be fixed by the user.&quot; ???

Namely, i&#039;ve got the following error during a very large script execution:
Error: 17053, Severity: 16, State: 1.
C:\XYZLOG1.LDF: Operating system error 112(There is not enough space on the disk.)

My questions are:
1) Can we tell whether some data was or wasn&#039;t written to database? And we need to reaply the script, eventually?

2) Why the severity was 16, not 17 ???
We have run out of the resources in this case!]]></description>
		<content:encoded><![CDATA[<p>Severity 16:<br />
What does exactly mean &#8220;can be fixed by the user.&#8221; ???</p>
<p>Namely, i&#8217;ve got the following error during a very large script execution:<br />
Error: 17053, Severity: 16, State: 1.<br />
C:\XYZLOG1.LDF: Operating system error 112(There is not enough space on the disk.)</p>
<p>My questions are:<br />
1) Can we tell whether some data was or wasn&#8217;t written to database? And we need to reaply the script, eventually?</p>
<p>2) Why the severity was 16, not 17 ???<br />
We have run out of the resources in this case!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kokila</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-60151</link>
		<dc:creator><![CDATA[kokila]]></dc:creator>
		<pubDate>Sun, 24 Jan 2010 01:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-60151</guid>
		<description><![CDATA[Hi Pinal

what is the purpose of is_event_logged column in sys.messages table. 

For example

if i set the value to 1 , will the error message will be logged in error log.

if it is 0, where the error messages will be logged?

Regards

Kokila K]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>what is the purpose of is_event_logged column in sys.messages table. </p>
<p>For example</p>
<p>if i set the value to 1 , will the error message will be logged in error log.</p>
<p>if it is 0, where the error messages will be logged?</p>
<p>Regards</p>
<p>Kokila K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-58224</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Sat, 05 Dec 2009 15:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-58224</guid>
		<description><![CDATA[Hello Nilay,

Error can be generated using RAISEERROR function. For more detail please visit my blog:
http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%E2%80%A6catch-and-error-handling-with-raiseerror-function/

Kind Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Nilay,</p>
<p>Error can be generated using RAISEERROR function. For more detail please visit my blog:<br />
<a href="http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%E2%80%A6catch-and-error-handling-with-raiseerror-function/" rel="nofollow">http://blog.sqlauthority.com/2007/10/03/sql-server-2005-explanation-of-try%E2%80%A6catch-and-error-handling-with-raiseerror-function/</a></p>
<p>Kind Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilay</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-58217</link>
		<dc:creator><![CDATA[Nilay]]></dc:creator>
		<pubDate>Sat, 05 Dec 2009 07:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-58217</guid>
		<description><![CDATA[Hi Pinal,

How can i generate error base on serverity or error number.

I have tried but could not generate alert.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>How can i generate error base on serverity or error number.</p>
<p>I have tried but could not generate alert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthikeyan T</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-45755</link>
		<dc:creator><![CDATA[karthikeyan T]]></dc:creator>
		<pubDate>Tue, 20 Jan 2009 05:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-45755</guid>
		<description><![CDATA[hi..
can you please clear this doubt.
wheather the error message is recorded somewhere in sql server

for eg: if i am excuting insert query and it returns an error like &#039; incorrect syntax error&#039; 
is it is recorded somewhere 
if yes..? where..?]]></description>
		<content:encoded><![CDATA[<p>hi..<br />
can you please clear this doubt.<br />
wheather the error message is recorded somewhere in sql server</p>
<p>for eg: if i am excuting insert query and it returns an error like &#8216; incorrect syntax error&#8217;<br />
is it is recorded somewhere<br />
if yes..? where..?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasanna</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-38730</link>
		<dc:creator><![CDATA[Prasanna]]></dc:creator>
		<pubDate>Thu, 22 May 2008 14:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-38730</guid>
		<description><![CDATA[Hi Pinal 

 How can we get the error message captuerd in a variable ,
i am getting the error number but i need the exact error message.
  For example while doing to bulk insert i am getting truncation
error at line number 1 and column number 2. I want this to be captured in variable. Is that possible.

Thanks,
Prasanna]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal </p>
<p> How can we get the error message captuerd in a variable ,<br />
i am getting the error number but i need the exact error message.<br />
  For example while doing to bulk insert i am getting truncation<br />
error at line number 1 and column number 2. I want this to be captured in variable. Is that possible.</p>
<p>Thanks,<br />
Prasanna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dazy</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-33299</link>
		<dc:creator><![CDATA[dazy]]></dc:creator>
		<pubDate>Sat, 26 Jan 2008 23:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-33299</guid>
		<description><![CDATA[Please also give error state description. As you previously wrote that error state number is an integer ranges from 1 to 127, now i want to ask that plz give some idea about when one should use error state = 1 or error state = 2 .....error state = 127.   As a beginner how we get to know that this error state is used for this error or wutever. Actually i saw many examples on net , i which mostly error state = 1 is used but in some other examples error state = 2 or error state = 5 is used. Now i&#039;m unable to figure out, each of these numbers are related with which type of errors.

-Thanx in advance.]]></description>
		<content:encoded><![CDATA[<p>Please also give error state description. As you previously wrote that error state number is an integer ranges from 1 to 127, now i want to ask that plz give some idea about when one should use error state = 1 or error state = 2 &#8230;..error state = 127.   As a beginner how we get to know that this error state is used for this error or wutever. Actually i saw many examples on net , i which mostly error state = 1 is used but in some other examples error state = 2 or error state = 5 is used. Now i&#8217;m unable to figure out, each of these numbers are related with which type of errors.</p>
<p>-Thanx in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dazy</title>
		<link>http://blog.sqlauthority.com/2007/04/25/sql-server-error-messages-sysmessages-error-severity-level/#comment-33297</link>
		<dc:creator><![CDATA[dazy]]></dc:creator>
		<pubDate>Sat, 26 Jan 2008 23:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/25/sql-error-messages-sysmessages-error-severity-level/#comment-33297</guid>
		<description><![CDATA[Hi,
Thank you very much, this description is really very helpful and also thanx for the msdn reference link.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thank you very much, this description is really very helpful and also thanx for the msdn reference link.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
