Insert into Table by whom ??

  • I have one SQL Server table (one of many) that night will be filled. Nobody knows which program, service or whatever fills this Table every Night.

    Is there a quick way to find out when and where insert/update into this table? (many jobs, many tables, stored procedures and many many linked servers).. of course search-routine, profiler, watch interfaces ???

    I am new in this Company, and nobody can give me Feedback about this. :w00t:

    kind Regards

    Nicole

  • Without either audit triggers or traces in real time, modifications are going to be hard to audit. That data is not kept by the system without some setup. If you have some idea of the time you could look at the job history and see what is running around that time..

    CEWII

  • Try running Profiler during the hours that the tables get filled.



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Alvin Ramard (7/23/2013)


    Try running Profiler during the hours that the tables get filled.

    This would be my go-to if I didn't have an audit server setup for the database. It's not a very pretty approach, but if you're willing to read logs it'll let you know at the very least who's running inserts.

  • I would add an INSERT trigger that captures app_name(), host_name(), SYSTEM_USER, USER and sysdatetime() to a log table.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • +1 for the trigger solution.

    If you are still in your probation period at this new company, remember that the assessment goes both ways ! :w00t:

Viewing 6 posts - 1 through 5 (of 5 total)

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