Table history trigger in SQL Server?

前端 未结 3 1647
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 18:06

I\'d like to create a trigger that writes to a history table with inserted values and before and after update values. I would also like to include as much information about

3条回答
  •  无人及你
    2020-12-10 18:42

    FWIW, if you are using SQL Server 2008, there is a much better alternative than writing triggers to track data changes. Take a look at Change Data Capture.

提交回复
热议问题