Log changes to database table with trigger

前端 未结 12 2291
醉梦人生
醉梦人生 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:41

    do you really need to log the statement that ran, most people log the changed data (INSERTED and DELETED tables within the trigger).

提交回复
热议问题