CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Posts
    292

    Arrow Advice on DB Design of 'Audit' Trail

    If one wants to log all the fields that has been edited (Original to Modification, Date of Edit, etc...) how should one design it?

    Database is Access and SQL Server...
    Intelligent people talks because they have something to say,
    Fools talk because they have to say something....

  2. #2
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    Re: Advice on DB Design of 'Audit' Trail

    It depends on what all events are you trying to follow up and what all information regarding those modifications are you planning to keep into the DB. You could set trigger to the tables whose data modifications you want to track... so that whenever there is a successful INSERT, UPDATE or DELETE called on those tables the information is stored in a seperate table for you. You would need to exploit the fact that there are two tables that you get access to in the triggers - "inserted" and "deleted". Hope this helps. Regards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured