Get logs of tables

  • Is there a query or stored procedure in SQL 2005 can help me to see the log of a particular table? I want to see the changes in tables across different time frame.

    Any idea?

  • If by log you mean changes, then for structure changes you can look at the default trace (if its running)

    http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/

    for data changes you need to build that in yourself, possibly with triggers

  • There are no logs of what happened to a table. As Steve mentioned, there's a default trace, but it only keeps the last 25MB of stuff that happened on the server by default. You could set up some type of auditing for the database, or tables, but that can be a tremendous amount of data in there.

  • Use the default trace as steves mentioned.

    Thank You,

    Best Regards,

    SQLBuddy

  • Thank you all !!

    I have been reading about it. I will need something historical and I need to know what changes were made on my tables. I will keep doing my research, any advice is appreciate it.

    Have a nice long weekend everyone !

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

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