What is an OUTPUT Clause Inside SQL Server ?

OUTPUT clause has accesses to inserted and deleted tables (virtual tables) just like triggers. OUTPUT clause can be used to return values to the client clause. OUTPUT clause can be used with INSERT, UPDATE, or DELETE to identify the actual rows affected by these statements. OUTPUT clause can generate a table variable, a permanent table, or a temporary table. Even though @@Identity will still work in SQL Server 2005.



You May Interest

Disable All Triggers in MS SQL Server Table

What is the Difference Between Clustered and a Non-clustered Inde ...

What are the Events On Default Trace in SQL Server ?

MS SQL Restoring a Database With a Query

MS SQL Compiling a Stored Procedure With a Requery