Results 1 to 9 of 9

Thread: Getting Number of Records Modified

  1. #1
    Join Date
    Oct 2004
    Posts
    2

    Getting Number of Records Modified

    Hi all

    My manager ask me to provide him with the total number of records which have been added, deleted or modified on a certain database in SQL Server 2000 during the month of September. Is there away to get that information from the transaction log or by any how?

    please some one guide me how to do that?

    Your help is highly appreciated

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Nothing from SQL Server allows you to do that unless you have turned on C2 auditing.

    However you can use commercially available tool from Lumigent (www.lumigent.com) called Log Explorer to go through transaction log (live or backup) to see what happened.

    Disclaimer: I don't get any commission from Lumigent (I wish though ) , it's a tool that I recommend.

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Yes and No.

    You need to use third party tool like Log Explorer and old backup, tranlog files.

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    WOW. Skhanal you beat me.

    hehehehe

  5. #5
    Join Date
    Sep 2002
    Posts
    5,938
    If your db is in simple recovery model, even Log Explorer can't help you. If the db is in full recovery model, you need all log backups made in September to get what you need.

  6. #6
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    If it is in simple recovery mode then you can restore beginning of September and end of September databases and use data compare from Redgate software to compare data.

    Wow, I feel like a software salesman today.

    rmiao, now don't say what if he does not have a backup .

  7. #7
    Join Date
    Oct 2004
    Posts
    2
    Thank u guys
    No it is not in simple recovery mode
    So I understand that it can not be done directly from SQL Server. I will need to get a third party program like Log Explorer.
    Correct me if i am mistaken

  8. #8
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    If you are not worried about details of the records try this (after restoring the backup)

    dbcc log (2)

    and look into the column "Operation"

  9. #9
    Join Date
    Sep 2002
    Posts
    5,938
    That only gives you whatever in current log since last log backup.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •