I have a trigger that inserts an entry into the diff table, but I need to get this record that was inserted inside the trigger, how do I do this? There is no identifier field, only account_nbr, which is generated by a separate trigger in the insert table.
I do not know if there are SQL queries to retrieve the row that was just inserted.
DB is Sql Server 2008.
source share