How can I know running operations on tables ?

  • Dear friends, firstly to apogolize to me because my english is very bad. I want to ask a question about "Insert, delete and update" operations on tables. Namely, i will writing a program that is make data transfer from sqlserver to database of program. But just transfering datas have been changes. Not all datas. So i need to know changes data on some tables. Is there any log about it on sqlserver or no ? Or how can i understand changed, inserted or deleted datas. Thanks..

  • The transaction log (in full recovery mode, the default) records all of the changes to data.  Products such as Lumigent log explorer will help you to read the log.  There are other less expensive programs as well.

    Russel Loski, MCSE Business Intelligence, Data Platform

  • Not sure why you don't write a trigger to store the data in a staging table along with the date the trigger fired and the operation that took place... then, you don't need to buy any 3rd party software, etc...

    --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)

  • Thanks my friends. I want to write a program to some company. So I can't write to trigger on their sqlservers tables.Because close to use from me. I must understand to change of data. Can I use "AUDIT" function for this problem ??

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

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