<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://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>Obtaining rowcounts when using Composable DML [T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx</link><description>In my August 2009 blog post Exploring Composable DML I introduced a new feature in SQL Server 2008 called Composable DML and also outlined one of its limitations; namely that data from the OUTPUT cannot be aggregated prior to insertion. Composable DML</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SSIS Junkie : Obtaining rowcounts when using Composable DML</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#47533</link><pubDate>Thu, 07 Feb 2013 14:03:14 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47533</guid><dc:creator>SSIS Junkie : Obtaining rowcounts when using Composable DML</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx"&gt;http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Obtaining rowcounts when using Composable DML [T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#47534</link><pubDate>Thu, 07 Feb 2013 16:00:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47534</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hm, I read &amp;quot;mrgout,&amp;quot; rather than &amp;quot;Merge Out,&amp;quot; as &amp;quot;Mr. Gout.&amp;quot; Maybe not the best name in the world :-)&lt;/p&gt;
</description></item><item><title>re: Obtaining rowcounts when using Composable DML [T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#47535</link><pubDate>Thu, 07 Feb 2013 16:08:52 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47535</guid><dc:creator>jbooker</dc:creator><description>&lt;p&gt;@@ROWCOUNT limitation in the context of OUTPUT using DML is listed here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms177564.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms177564.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Obtaining rowcounts when using Composable DML [T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#47583</link><pubDate>Thu, 07 Feb 2013 23:30:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47583</guid><dc:creator>Fernando Marçal</dc:creator><description>&lt;p&gt;Hi Jamie, nice article and agree with you on MERGE needing to return @@ROWCOUNT for every operation, nevertheless, in my case, I usually have control columns (batchid, lastoperationtype) which easilly allow me to infer what was inserted/updated for a given batch and do appropriate counting/control.&lt;/p&gt;
</description></item><item><title>re: Obtaining rowcounts when using Composable DML [T-SQL]</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#47610</link><pubDate>Fri, 08 Feb 2013 21:32:16 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47610</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;Fernando,&lt;/p&gt;
&lt;p&gt;I agree, and I have the same thing - I refer to those columns as data lineage. Perhaps another blog post is required.&lt;/p&gt;
&lt;p&gt;Josh, thanks for that. For those that can't be bothered going to find it, thee article that Josh (jbooker) linked toreads:&lt;/p&gt;
&lt;p&gt;&amp;quot;•@@ROWCOUNT returns the rows inserted only by the outer INSERT statement.&amp;quot;&lt;/p&gt;
&lt;p&gt;Machanic - there are no words :)&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;JT&lt;/p&gt;
</description></item><item><title>Bootstrapping SQL Server bloggers and blog readers with Twitter!</title><link>http://sqlblog.com/blogs/jamie_thomson/archive/2013/02/07/obtaining-rowcounts-when-using-composable-dml.aspx#48016</link><pubDate>Sun, 03 Mar 2013 23:21:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48016</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;On 17th December 2009 Aaron Nelson (you may know him as @sqlvariant ) had a great idea – he invented&lt;/p&gt;
</description></item></channel></rss>