<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx</link><description>Let’s say you have a big table with a clustered primary key, and an application that inserts batches of rows into it. The nature of the business is that the batch will inevitably sometimes contain rows that already exist in the table. The default SQL</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47448</link><pubDate>Fri, 01 Feb 2013 21:55:17 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47448</guid><dc:creator>tobi</dc:creator><description>&lt;p&gt;Amazing post, also looking forward to the post about Merge and Halloween Protection.&lt;/p&gt;
&lt;p&gt;Another alternative to the &amp;quot;duplicate&amp;quot; UNIQUE index might be a trigger. It might be slower for DML but does not require storage space.&lt;/p&gt;</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47494</link><pubDate>Tue, 05 Feb 2013 19:16:05 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47494</guid><dc:creator>wqw</dc:creator><description>&lt;p&gt;Warning on IGNORE_DUP_KEY was raised as an *error* by current SQLOLEDB/ODBC drivers so it is impossible to use it in client applications. Never tested recent NCLI/.Net Providers but possibly the issue is fixed.&lt;/p&gt;</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47505</link><pubDate>Tue, 05 Feb 2013 22:45:25 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47505</guid><dc:creator>Paul White</dc:creator><description>&lt;p&gt;@tobi An INSTEAD OF trigger? I guess so, though the overheads are even worse than the extra operators in the plans I show here. Both INSTEAD OF and AFTER triggers require storage for the inserted and deleted tables.&lt;/p&gt;
&lt;p&gt;@wqw Thanks, good to know.&lt;/p&gt;
</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47714</link><pubDate>Thu, 14 Feb 2013 02:06:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47714</guid><dc:creator>Paul White</dc:creator><description>&lt;p&gt;The first part of the series on the Halloween Problem is now out:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.sqlperformance.com/2013/02/t-sql-queries/halloween-problem-part-1"&gt;http://www.sqlperformance.com/2013/02/t-sql-queries/halloween-problem-part-1&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47737</link><pubDate>Fri, 15 Feb 2013 16:22:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47737</guid><dc:creator>wqw</dc:creator><description>&lt;p&gt;FYI, on SQL Azure database `WITH IGNORE_DUP_KEY` option raises &amp;quot;Deprecated feature 'INDEX_OPTION' is not supported in this version of SQL Server.&amp;quot;&lt;/p&gt;</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#47756</link><pubDate>Sat, 16 Feb 2013 10:23:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47756</guid><dc:creator>Paul White</dc:creator><description>&lt;p&gt;wqw,&lt;/p&gt;
&lt;p&gt;Interesting. Another thing: MERGE ignores IGNORE_DUP_KEY for insert operations too. Thanks for the Azure information.&lt;/p&gt;
</description></item><item><title>re: A creative use of IGNORE_DUP_KEY</title><link>http://www2.sqlblog.com/blogs/paul_white/archive/2013/02/01/a-creative-use-of-ignore-dup-key.aspx#48214</link><pubDate>Tue, 12 Mar 2013 16:50:09 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48214</guid><dc:creator>sqlscripter - Ed P</dc:creator><description>&lt;p&gt;Neat article, I had to stuff 5 databases into 1 ofcourse for a &amp;quot;special&amp;quot; reporting db and got that same error years ago. Funny no one could get it to work for a long time I was told, I found the INGORE_DUP_KEY option and blingo....everyone in the pool...problem solved&lt;/p&gt;</description></item></channel></rss>