Extracting insert, update, delete rowcounts from T-SQL MERGE
Just lately I’ve been using T-SQL’s MERGE statement (introduced in SQL Server 2008) and one thing that I needed to do was extract rowcounts for each DML operation (i.e. INSERT, UPDATE, DELETE)...
View ArticleMERGE and OUTPUT – the swiss army knife of T-SQL
The new T-SQL MERGE statement in SQL Server 2008 seems to be finding many uses over and above its de facto UPSERT usage scenario, probably the most popular of which is its ability to update one table...
View ArticleThe current state of a MERGE Destination for SSIS
Hugo Tap asked me on Twitter earlier today whether or not there existed a SSIS Dataflow Destination component that enabled one to MERGE data into a table rather than INSERT it. Its a common request so...
View ArticleObtaining rowcounts when using Composable DML [T-SQL]
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...
View Article
More Pages to Explore .....