I am looking for any information regarding viewing the records that were deleted from a delete statement within an open transaction before committing the transaction. I have found little information on how to do this in SQL 2000, but uncovered how it is done in SQL 2005. Perhaps this is not possible in 2000?
--These are the steps I would like to perform...
delete from orders where orderno = 1
select * from deleted (this is the syntax inside a trigger to view the records in the virtual delete table)
That is true and is what I usually do for any delete. However, other database engines actually provide the ability to see which records are marked for deletion before the transaction is committed. I was just curious if that same functionality exists in SQL Server 2000.