<?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>SQL Server Planet &#187; merge</title> <atom:link href="http://sqlserverplanet.com/tag/merge/feed/" rel="self" type="application/rss+xml" /><link>http://sqlserverplanet.com</link> <description>Tips and Articles on SQL Server</description> <lastBuildDate>Wed, 07 Jul 2010 05:16:42 +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>Using the Merge Statement to populate a historical table with Effective Dating</title><link>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statement-to-populate-a-historical-table-with-effective-dating/</link> <comments>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statement-to-populate-a-historical-table-with-effective-dating/#comments</comments> <pubDate>Thu, 04 Jun 2009 05:31:40 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[Data Warehouse]]></category> <category><![CDATA[SQL Server 2008]]></category> <category><![CDATA[effective dating]]></category> <category><![CDATA[history]]></category> <category><![CDATA[merge]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=112</guid> <description><![CDATA[One of my favorite uses for the MERGE statement introduced in SQL Server 2008 is the updating of a historical table. With versions prior to 2008 this operation had to be performed in two separate statements. Merge helps us to streamline the process. The advantage to the database engine when using a Merge statement is [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statement-to-populate-a-historical-table-with-effective-dating/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using the Merge Statement&#8217;s OUTPUT Clause to Match Inserted IDENTITY Fields with Source Table Fields</title><link>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statements-output-clause-to-match-inserted-identity-fields-with-source-table-fields/</link> <comments>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statements-output-clause-to-match-inserted-identity-fields-with-source-table-fields/#comments</comments> <pubDate>Tue, 02 Jun 2009 21:43:19 +0000</pubDate> <dc:creator>Derek Dieter</dc:creator> <category><![CDATA[SQL Server 2008]]></category> <category><![CDATA[merge]]></category> <category><![CDATA[output]]></category><guid isPermaLink="false">http://sqlserverplanet.com/?p=100</guid> <description><![CDATA[With this project I needed to insert data into table1 from table2 while simultaneously retrieving the identity field of table1, then insert that identity into table3 which mapped to table2 on a key that table1 did not have. The OUTPUT clause when used with the input statment would not facilitate this because it could not [...]]]></description> <wfw:commentRss>http://sqlserverplanet.com/sql-server-2008/using-the-merge-statements-output-clause-to-match-inserted-identity-fields-with-source-table-fields/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 42/50 queries in 0.077 seconds using disk
Content Delivery Network via files.sqlserverplanet.com

Served from: sqlserverplanet.com @ 2010-07-31 08:59:57 -->