I know in SQL Server there is a way to get the inserted data, but I can’t for the life of me seem to remember the keywords to use.
Running a query was something along the lines of this:
INSERT INTO table1
OUTPUT inserted.id1, inserted.id2 INTO someOtherTable
(id1, id2) VALUES (1,2)
And when googling for output, inserted or other similar keywords I keep finding pages on using the insert or output keyword from a stored procedure. I know I’m not crazy and this this exist. I’m just wondering if someone could point me to the documentation page for it?
I believe you are looking for the
inserted&deletedtables in SQL Server.http://msdn.microsoft.com/en-us/library/ms191300.aspx