<?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>Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx</link><description>It would be fair to say that there aren't a huge number of programmability features added to SQL Server 2008 that will have a great impact on most of our day-to-day lives as SQL Server developers. The release was clearly manageability themed rather than</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16277</link><pubDate>Tue, 25 Aug 2009 01:58:43 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16277</guid><dc:creator>Jacob Sebastian</dc:creator><description>&lt;p&gt;Very nice post Adam!. We do a lot of auditing and this is one of the programmability enhancements I love in SQL Server 2008&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16283</link><pubDate>Tue, 25 Aug 2009 07:30:39 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16283</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;With Composable DML, we are right now restricted to use INSERT only.&lt;/p&gt;
&lt;p&gt;There are issues on Connect to enable all DML with Composable DML.&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16289</link><pubDate>Tue, 25 Aug 2009 12:44:53 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16289</guid><dc:creator>Jack Corbett</dc:creator><description>&lt;p&gt;Nice post Adam. &amp;nbsp;Wish I was working with SQL Server 2008 so I could use MERGE. &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16291</link><pubDate>Tue, 25 Aug 2009 13:29:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16291</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Jacob and Jack, glad you enjoyed it.&lt;/p&gt;
&lt;p&gt;Peso, thanks for the echo.&lt;/p&gt;
</description></item><item><title>Extracting insert, update, delete rowcounts from T-SQL MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16393</link><pubDate>Sat, 29 Aug 2009 22:40:25 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16393</guid><dc:creator>Jamie Thomson</dc:creator><description>&lt;p&gt;Just lately I’ve been using T-SQL’s MERGE statement (introduced in SQL Server 2008) and one thing that&lt;/p&gt;
</description></item><item><title>Exploring Composable DML</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#16436</link><pubDate>Sun, 30 Aug 2009 22:33:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:16436</guid><dc:creator>Jamie Thomson</dc:creator><description>&lt;p&gt;SQL Server 2008 includes a new feature called “Composable DML” which I hadn’t heard about until I read&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#18215</link><pubDate>Sun, 25 Oct 2009 09:26:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:18215</guid><dc:creator>Florian Reischl</dc:creator><description>&lt;p&gt;Great job, Adam!&lt;/p&gt;
&lt;p&gt;Especially the part about how to combine the surrogate client id and the generated server identity. This, in combination with TVPs, enables set-based and really high performing client solutions.&lt;/p&gt;
&lt;p&gt;Greets&lt;/p&gt;
&lt;p&gt;Flo&lt;/p&gt;
</description></item><item><title>MERGE and OUTPUT – the swiss army knife of T-SQL</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#20641</link><pubDate>Wed, 06 Jan 2010 18:46:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:20641</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;The new T-SQL MERGE statement in SQL Server 2008 seems to be finding many uses over and above its de&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#29547</link><pubDate>Wed, 20 Oct 2010 18:42:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:29547</guid><dc:creator>Vic Kirkpatrick</dc:creator><description>&lt;p&gt;I just don't understand why you can't get the source values when using OUTPUT with a normal INSERT statement, but you definitely can't. Very frustrating. You can only access the INSERT.* columns. Arrgghhh.&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#34838</link><pubDate>Tue, 12 Apr 2011 17:49:34 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:34838</guid><dc:creator>Peter Schott</dc:creator><description>&lt;p&gt;I agree, Vic. Very frustrating that OUTPUT and OUTPUT INTO don't give access to the original columns. Been beating my head against that for the last hour or so just to confirm because I couldn't find anything that explicitly said that OUTPUT could _only_ use &amp;quot;inserted&amp;quot; and &amp;quot;deleted&amp;quot; for its values.&lt;/p&gt;
&lt;p&gt;Thanks for the writeup, Adam. Looking forward to 2008 so we can do this in a more correct manner.&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#43813</link><pubDate>Fri, 08 Jun 2012 14:11:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:43813</guid><dc:creator>Alejandro</dc:creator><description>&lt;p&gt;Thanks for sharing!&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#44629</link><pubDate>Thu, 09 Aug 2012 05:58:34 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:44629</guid><dc:creator>Alfa</dc:creator><description>&lt;p&gt;Awesome explanation Adam! Thanks for sharing these powerfule features of merge + Output&lt;/p&gt;
</description></item><item><title>re: Dr. OUTPUT or: How I Learned to Stop Worrying and Love the MERGE</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/08/24/dr-output-or-how-i-learned-to-stop-worrying-and-love-the-merge.aspx#47244</link><pubDate>Tue, 22 Jan 2013 17:37:20 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47244</guid><dc:creator>Joshua Dobbelaar</dc:creator><description>&lt;p&gt;Adam, I've been sharing this excellent article with my team members. &amp;nbsp;We all thank you! &amp;nbsp;&lt;/p&gt;
</description></item></channel></rss>