I have a system-versioned table in sql server 2016. I want to store Modifier ID in its temporal (history) table while users are performing delete or update action on the table.
Is there any built-in solution by sql server 2016 to do that?
I have a system-versioned table in sql server 2016. I want to store Modifier ID in its temporal (history) table while users are performing delete or update action on the table.
Is there any built-in solution by sql server 2016 to do that?
You can use Audit
No it is not possible because the Temporal tables and their History tables has to have exactly the Same Schema i.e
So unless you are capturing the Modifier's ID in the Temporal tables itself, you cannot add this information to the history table.
How would you capture this Modifier's ID information in the Temporal table itself, well this can be handled on the application layer.
You can use Audit
© 2022 - 2024 — McMap. All rights reserved.