RuthO
4Penny.net
Points: 7933

7/12/2012 3:09:26 PM

Dynamics - How to log the user that changed a field in the database

* This article, and all our great SQL (General) documentation, Is available on the SQL (General) menu

I have a solution that will 'audit' changes to the database... but it doesn't log who did it. Also, my existing solution is too heavy handed... it logs every change to every field. This short script will show you how to log the changes to just one field and who did it.

In our example we'll log the changes to the Customer PO Number field in the SOP Work Header table.

4Penny.net
Version: All
Section: SQL Scripts
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3