<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sqlserver007 &#187; SQLErrors</title>
	<atom:link href="http://www.sqlserver007.com/tag/sqlerrors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqlserver007.com</link>
	<description>Blog on SQL SERVER and Business Intelligence  by Vivekanand Serou</description>
	<lastBuildDate>Fri, 21 May 2010 11:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system&#8217;s console.</title>
		<link>http://www.sqlserver007.com/2010/01/17/could-not-open-global-shared-memory-to-communicate-with-performance-dll-data-flow-performance-counters-are-not-available-to-resolve-run-this-package-as-an-administrator-or-on-the-systems-consol/</link>
		<comments>http://www.sqlserver007.com/2010/01/17/could-not-open-global-shared-memory-to-communicate-with-performance-dll-data-flow-performance-counters-are-not-available-to-resolve-run-this-package-as-an-administrator-or-on-the-systems-consol/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:59:58 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[SSIS]]></category>
		<category><![CDATA[SQLErrors]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=490</guid>
		<description><![CDATA[You may see the above error if you are using the SQL server Destination in your SSIS package. Sql server Destination cannot be used in packages that access a SQL Server database on a remote server. Instead use the OLEDB destination. Things to note for SQL Server Destination a. It offers the same speed as [...]]]></description>
			<content:encoded><![CDATA[<p>You may see the above error if you are using the <strong>SQL server Destination</strong> in your SSIS package.<br />
<a href="http://www.sqlserver007.com/wp-content/uploads/2010/01/SqlserveDestination.jpg"><img src="http://www.sqlserver007.com/wp-content/uploads/2010/01/SqlserveDestination.jpg" alt="" title="SqlserveDestination" width="168" height="74" class="aligncenter size-full wp-image-491" /></a></p>
<p>Sql server Destination cannot be used  in packages that access a SQL Server database on a remote server. Instead use the OLEDB destination.</p>
<p>Things to note for SQL Server Destination</p>
<p>a. It offers the same speed as the Bulk Insert Operation.<br />
b. It does not support Error Output.</p>
<p>For more information please check <a href="http://msdn.microsoft.com/en-us/library/ms141095.aspx">msdn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2010/01/17/could-not-open-global-shared-memory-to-communicate-with-performance-dll-data-flow-performance-counters-are-not-available-to-resolve-run-this-package-as-an-administrator-or-on-the-systems-consol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with SQL Server numeric data : Error converting data type varchar to numeric.</title>
		<link>http://www.sqlserver007.com/2009/09/08/error-converting-data-type-varchar-to-numeric/</link>
		<comments>http://www.sqlserver007.com/2009/09/08/error-converting-data-type-varchar-to-numeric/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:23:58 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[SQLErrors]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=217</guid>
		<description><![CDATA[Today I stuck with an interesting problem of converting number data in Varchar fields to numeric datatypes. I have created the following sample data The data in the table contains Decimal and scientific values in varchar format as shown in the figure below. Now when I tried to convert the above values to numeric as [...]]]></description>
			<content:encoded><![CDATA[<p>Today I stuck with an interesting problem of converting number data in Varchar fields to numeric datatypes. I have created the following sample data</p>
<div id="attachment_218" class="wp-caption aligncenter" style="width: 362px"><img class="size-full wp-image-218" title="Create table SQL  script" src="http://www.sqlserver007.com/wp-content/uploads/2009/09/Numerictable_Creation.png" alt="Create table SQL  script" width="352" height="375" /><p class="wp-caption-text">Create table SQL  script</p></div>
<p>The data in the table contains Decimal and scientific values in varchar format as shown in the figure below.</p>
<p><img src="http://www.sqlserver007.com/wp-content/uploads/2009/09/Table_NumericData1.png" alt="Table_NumericData" title="Table_NumericData" width="164" height="117" class="aligncenter size-full wp-image-225" /></p>
<p>Now when I tried to convert the above values to numeric as below it returns only 3 rows but with the following message</p>
<div id="attachment_221" class="wp-caption aligncenter" style="width: 181px"><img src="http://www.sqlserver007.com/wp-content/uploads/2009/09/WrongSQL_numeric.png" alt="Wrong SQL" title="WrongSQL_numeric" width="171" height="157" class="size-full wp-image-221" /><p class="wp-caption-text">Wrong SQL</p></div>
<p></p>
<p><strong>Msg 8114, Level 16, State 5, Line 2<br />
Error converting data type varchar to numeric.</strong></p>
<p>The isnumeric does return 1 for all the 4 values in the table. I modified the query so that it initially converts to<br />
float and then converts to numeric and it works.<br />
<br />
<div id="attachment_222" class="wp-caption aligncenter" style="width: 319px"><img src="http://www.sqlserver007.com/wp-content/uploads/2009/09/CorrectSQL_numericFormat.png" alt="Correct SQL" title="CorrectSQL_numericFormat" width="309" height="102" class="size-full wp-image-222" /><p class="wp-caption-text">Correct SQL</p></div></p>
<p><img src="http://www.sqlserver007.com/wp-content/uploads/2009/09/numeric_ResultTable1.png" alt="numeric_ResultTable" title="numeric_ResultTable" width="277" height="114" class="aligncenter size-full wp-image-227" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/09/08/error-converting-data-type-varchar-to-numeric/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value</title>
		<link>http://www.sqlserver007.com/2009/06/22/the-conversion-of-a-char-data-type-to-a-datetime-data-type-resulted-in-an-out-of-range-datetime-value/</link>
		<comments>http://www.sqlserver007.com/2009/06/22/the-conversion-of-a-char-data-type-to-a-datetime-data-type-resulted-in-an-out-of-range-datetime-value/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 11:53:02 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[SQLErrors]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=205</guid>
		<description><![CDATA[The Error Occurs when the input is date and the given day values are not in the range of the expected days for a given month(1-31) For eg. You cannot specify the date parameter as Feb 31 2009 since february only has 28 days in a non-Leap year and it throws the above error.]]></description>
			<content:encoded><![CDATA[<p>The Error Occurs when the input is date and the given day values are not in the range of the expected days for a given month(1-31)</p>
<p>For eg.</p>
<p>You cannot specify the date parameter as Feb 31 2009 since february only has 28 days in a non-Leap year and it throws the above error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/06/22/the-conversion-of-a-char-data-type-to-a-datetime-data-type-resulted-in-an-out-of-range-datetime-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Null value is eliminated by an aggregate or other SET operation</title>
		<link>http://www.sqlserver007.com/2009/04/06/null-value-is-eliminated-by-an-aggregate-or-other-set-operation/</link>
		<comments>http://www.sqlserver007.com/2009/04/06/null-value-is-eliminated-by-an-aggregate-or-other-set-operation/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:11:09 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SSIS]]></category>
		<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[SQLErrors]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=68</guid>
		<description><![CDATA[The Problem occurs when an aggregate function(max,sum,avg..) exists on null values. Trying to get rid of the null values may be the solution but in certain cases..you may need the extra data relying on the null values. So whats the solution? Append set ANSI_WARNINGS OFF on the beginning of the sql statement. When using the [...]]]></description>
			<content:encoded><![CDATA[<p>The Problem occurs when an aggregate function(max,sum,avg..) exists on null values. Trying to get rid of the null values may be the solution but in certain cases..you may need the extra data relying on the null values.</p>
<p>So whats the solution?<br />
Append <strong>set ANSI_WARNINGS OFF</strong> on the beginning of the sql statement.</p>
<p>When using the same in SSIS packages the Packages may fail.The Output Window may indicate that there is already a OLEDB destination exported which in this case is the error message.<br />
<em><br />
An OLE DB record is available.  Source: &#8220;Microsoft SQL Native Client&#8221;  Hresult: 0x00040EDA  Description: &#8220;Warning: Null value is eliminated by an aggregate or other SET operation.&#8221;</em></p>
<p>So use <strong>set ANSI_WARNINGS OFF</strong></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2446771569747112";
google_ad_slot = "6029010469";
google_ad_width = 300;
google_ad_height = 250;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/04/06/null-value-is-eliminated-by-an-aggregate-or-other-set-operation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Set identity_insert on&#8221; errors for more than one table</title>
		<link>http://www.sqlserver007.com/2009/02/24/set-identity_insert-on-errors-for-more-than-one-table/</link>
		<comments>http://www.sqlserver007.com/2009/02/24/set-identity_insert-on-errors-for-more-than-one-table/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 16:55:27 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLErrors]]></category>

		<guid isPermaLink="false">http://sqlserver007.wordpress.com/?p=29</guid>
		<description><![CDATA[I was trying to remove the Identity inserts for 4 tables all at once but I keeping getting errors like Cannot remove the Identity insert on table 2 as the table1 already has identity insert on. So after digging into the MSDN I was surprised to see the following lines &#8220;At any time, only one [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to remove the Identity inserts for 4 tables all at once but I keeping getting errors like <strong>Cannot remove the Identity insert on table 2 as the table1 already has identity insert on.</strong></p>
<p>So after digging into the MSDN I was surprised to see the following lines</p>
<p>&#8220;At any time, only one table in a session can have the IDENTITY_INSERT property set to ON. If a table already has this property set to ON, and a SET IDENTITY_INSERT ON statement is issued for another table, Microsoft® SQL Server™ returns an error message that states SET IDENTITY_INSERT is already ON and reports the table it is set ON for.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/02/24/set-identity_insert-on-errors-for-more-than-one-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
