Auditing

  • Good day,
     My requirement  is to record all the activities done by users,  e.g. If users  (including sys, and system), when they update/delete/modify table or Drop database .... whatever they did to the database must be recorded in detail and i want it  inside a table.I am running a standard edition and  if not mistaken audting not supported.What code should i use?

    Thanks

    .

  • This is not a trivial task.  Start here.

    https://www.red-gate.com/simple-talk/sql/database-administration/auditing-ddl-changes-in-sql-server-databases/

    If that is insufficient for some reason, then buy a product such as Apex.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Additionally, auditing wouldn't quite accomplish what you're looking for, as a server / database audit can't be directly written to a table.  You'd have to create a process to read the audit files and save them into a table.

    I tried doing something along these lines, it didn't work too well (it also wasn't a requirement in my situation, so I stopped working on it.)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply