Testing integrity of imported data

  • iDamix

    SSC Enthusiast

    Points: 177

    Hi,

    I've loaded a few hundred XML files into a SQL Server 2008 DB and need to show that the data was accurately replicated.

    I'd like to take 10% of each table (each XML files corresponds to a table) and check them against the XML file. Or vice versa, it doesn't really matter.

    It is easy to select 10% of each table at random, but does anyone have an idea on how to check it against the XML files?

    Thanks in advance.

  • pakhireddy

    Valued Member

    Points: 56

    hi

    u can goto this link where u can find the answer.

    http://www.gcreddy.com/2010/12/qtp-scripts.html

  • Jeff Moden

    SSC Guru

    Points: 995168

    iDamix (2/28/2011)


    Hi,

    I've loaded a few hundred XML files into a SQL Server 2008 DB and need to show that the data was accurately replicated.

    I'd like to take 10% of each table (each XML files corresponds to a table) and check them against the XML file. Or vice versa, it doesn't really matter.

    It is easy to select 10% of each table at random, but does anyone have an idea on how to check it against the XML files?

    Thanks in advance.

    This is a bit like the mouse guarding the cheese. 😉 The same methods that you used for importing the data would be the same methods you'd use to check the data.

    --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.
    "If you think its expensive to hire a professional to do the job, wait until you hire an amateur."--Red Adair
    "Change is inevitable... change for the better is not."
    When you put the right degree of spin on it, the number 3|8 is also a glyph that describes the nature of a DBAs job. 😉

    Helpful Links:
    How to post code problems
    Create a Tally Function (fnTally)

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

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