Script

  • Hi,

    Is there a way to find out who made changes to a table using dmvs?

    Thanks

  • As far as I know, NO. You can check the default trace to see if it is registered there.

    The best way would be to set Auditing on the table you are interested in to catch any future changes.

    -Roy

  • No.

    If you need to be able to know who changed data in a table, you either need to have a trace running or set up auditing.

    Converting oxygen into carbon dioxide, since 1955.
  • the other answer is change management tracking. Which means new code is tested, saved and accessible with all the info you need.

  • I assumed the OP was referring to data changes.

    Of course change management should be used for any DDL/code deployment.

    Converting oxygen into carbon dioxide, since 1955.
  • Steve Cullen (10/20/2011)


    I assumed the OP was referring to data changes.

    Of course change management should be used for any DDL/code deployment.

    Could be... but still on the 50 yard line after re-reading.

  • Piling on at this point, but nope. Not a chance. the DMO objects store either real time information or aggregation information. They couldn't store historical information without the system databases taking a major portion of your server.

    One option open to you not previously mentioned is extended events.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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