how to find out how many records were inserted into a table

  • Juanita

    SSCertifiable

    Points: 5300

    Hello,

    I was asked today if AFTER THE FACT, could i tell how many records were inserted into a particular table. I have looked at the various dmv's but i don't see what would tell me that.. the default trace does not track inserts from what i know and i didn't have profiler running at the time. is there anyway to do this after it has happened?

    Thank you so much!

    Juanita 😎

  • magasvs

    SSCertifiable

    Points: 7659

    Hi Juanita,

    Does your table have any datetime columns that track when records have been created?

  • Juanita

    SSCertifiable

    Points: 5300

    Hello,

    Unfortunately it has 3 fields and none of them are date fields to help determine when added

    juanita

  • LutzM

    SSC Guru

    Points: 107049

    If you have a backup from last night you could restore it to a separate server/database and compare the rows...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • Juanita

    SSCertifiable

    Points: 5300

    good idea ! thank you !

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

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