 




<?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/"
		>
<channel>
	<title>Comments on: On Error Resume Next SQL Server 2005</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/on-error-resume-next-sql-server-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/on-error-resume-next-sql-server-2005/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jsql</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/on-error-resume-next-sql-server-2005/#comment-67780</link>
		<dc:creator>jsql</dc:creator>
		<pubDate>Sat, 05 Sep 2009 02:54:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-67780</guid>
		<description><![CDATA[Thanks very much.

Inserting row by row is a very slow process and using cursor on 50 million records is just not going to end the process.

Its good if we can capture the error and store it in log to know the cause.

I was looking for, if there is a way to ignore errors while Bulk Insert like I&#039;ve mentioned in the query. Looks like the solution is to insert row by row only to ignore errors..

Thanks all again.]]></description>
		<content:encoded><![CDATA[<p>Thanks very much.</p>
<p>Inserting row by row is a very slow process and using cursor on 50 million records is just not going to end the process.</p>
<p>Its good if we can capture the error and store it in log to know the cause.</p>
<p>I was looking for, if there is a way to ignore errors while Bulk Insert like I&#8217;ve mentioned in the query. Looks like the solution is to insert row by row only to ignore errors..</p>
<p>Thanks all again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/on-error-resume-next-sql-server-2005/#comment-67774</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Fri, 04 Sep 2009 18:42:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-67774</guid>
		<description><![CDATA[Doing a row by row insert of rows into the SQL Server will be many times slower than doing a single recordset insert.

When doing your insert into the table you should check the destination table, and only insert rows which do not exist.

&lt;pre&gt;insert into table1 
select top 1000 columnname 
from table2
WHERE NOT EXISTS (SELECT * FROM table1 WHERE table1.id = table2.id)
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Doing a row by row insert of rows into the SQL Server will be many times slower than doing a single recordset insert.</p>
<p>When doing your insert into the table you should check the destination table, and only insert rows which do not exist.</p>
<pre>insert into table1 
select top 1000 columnname 
from table2
WHERE NOT EXISTS (SELECT * FROM table1 WHERE table1.id = table2.id)
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.024 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 00:33:56 -->