Link to home
Start Free TrialLog in
Avatar of Umar Topia
Umar TopiaFlag for India

asked on

Inserting Operation Type (Insert/Update/Delete) in SQL Server History Temporal Table

I am using SQL Server 2016 and have just started using temporal tables for auditing purpose. However, I am not getting a way to insert the operation type in the history table along with the version of the row. i.e. I want to have one column, which would contain whether the record was updated/inserted/deleted?
I have tried searching on internet and went through many articles and documentation but have not found anything yet.
Avatar of Jason clark
Jason clark
Flag of United States of America image

You may have a look on this blog which might be helpful to you: http://sqltechtips.blogspot.in/2017/01/difference-between-local-and-global-temporary-tables.html
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Umar Topia

ASKER

@Scott that's what I was thinking too. Probably this is the only doable solution as of now. Thanks.
Probably this is what I was thinking too. Thanks for your comment.