Tracking Inserted, Updated, and Deleted Rows with SQL Server OUTPUT
Learn how you can use the OUTPUT clause to capture data that is changed by your DML statements.
2026-11-16
2,243 reads
Learn how you can use the OUTPUT clause to capture data that is changed by your DML statements.
2026-11-16
2,243 reads
2023-03-27
361 reads
2019-06-14
1,588 reads
2018-08-07
954 reads
2016-09-30
1,263 reads
When you are inserting, updating, or deleting records from a table, SQL Server keeps track of the records that are changed in two different pseudo tables: INSERTED, and DELETED. These tables are normally used in DML triggers. If you use the OUTPUT clause on an INSERT, UPDATE, DELETE or MERGE statement you can expose the records that go to these pseudo tables to your application and/or T-SQL code.
2012-03-26
3,728 reads
By James Serra
Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...
By alevyinroc
There are two ways to use dbatools to copy SQL Server Agent jobs, but...
By ReviewMyDB
Part 3 of my What's New in SQL Server for the Developer series. SQL...
Erectile dysfunction (ED) is a common sexual health condition that can affect men's confidence,...
Comments posted to this topic are about the item How to Store AI Output...
Comments posted to this topic are about the item Career Advice for Tech
Which class of errors are automatically written to the error log?
See possible answers