audit trail

  • hi friends

    i've database of 20 tables.and my task is to create audit trail everytime a user updates any of the 20 tables.what i'm doing is creating a trigger on a table i want 2 audit

    which will log this activity in to log table.

    my question is say if i've 50 tables an i want to audit all of them then i need 2 create 50 triggers right?

    i am wondering if there is any better/simpler way.

  • If you are going to use trigger then yes, you will have to create one trigger per table.

    Or you can also run continuosly profiler to log the updates.

    Or also create stored procedures to run the updates and also log into a table. Give permission to the stored procedure and remove the access to the table. So that, all users use your stored procedure.

  • You can buy a product to do this, such as Entegra,OminiAudit, or VigilEnt.

    --Jonathan



    --Jonathan

  • Hi Jonathan & racosta

    Thank u very much for ur reply.

    sorry i'm in late in reply as i was in christamas holidays.

    Hope u guys had great christamas.

    cheers

  • I believe Yukon will allow you to create system or server level triggers which would do what you need, Entegra,which Jonathan mentioned will do this now.

    HTH

    Ray Higdon MCSE, MCDBA, CCNA

    ------------

    Ray Higdon MCSE, MCDBA, CCNA

  • Thanks Ray

    my company is not willing to invest any amt

    in buying those 3rd party tools.

    may b i need to stick to my earlier plan.

    cheers

  • Yep, if you didn't know Yukon is the next version of SQL Server due to be released end of 2004, if you can wait that long you can have what you want included in Yukon.

    Ray Higdon MCSE, MCDBA, CCNA

    ------------

    Ray Higdon MCSE, MCDBA, CCNA

  • frankly i didnot know aby yukon.

    thanks for telling me abt it.

    cheers

  • Here's one URL that will get you started,

    http://www.microsoft.com/sql/yukon/productinfo/

    Ray Higdon MCSE, MCDBA, CCNA

    ------------

    Ray Higdon MCSE, MCDBA, CCNA

  • cheers ray

    i'll look at it.

Viewing 10 posts - 1 through 9 (of 9 total)

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