Log changes to database table with trigger

前端 未结 12 2338
醉梦人生
醉梦人生 2021-02-08 18:48

I am looking for a good way to log changes that occur on a particular set of tables in my SQL Server 2005 database. I believe the best way to do this is through a trigger that g

12条回答
  •  面向向阳花
    2021-02-08 19:29

    Don't forget that your logging will be part of the transaction so if there is an error and you rollback the transaction, your log will also be deleted.

提交回复
热议问题