Using the OUTPUT clause for practical SQL Server applications

May 21, 2008

[From Search SQL Server]

While the majority of articles describing new functionality in SQL Server 2005 focus on flashy features such as SQLCLR or the XML data type, many enhancements to the good old T-SQL language didn't get as much attention as they deserved. I've heard from a few DBAs and they were more excited about T-SQL enhancements than about the much promoted and publicized functionality. One useful enhancement to the actual SQL language is the OUTPUT clause, which allows you to retrieve the set of rows affected by a data modification command.

The article continues at http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1314275,00.html