Testing integrity of imported data

  • iDamix

    SSC Enthusiast

    Points: 187

    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: 996832

    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.
    "Change is inevitable... change for the better is not".
    "If "pre-optimization" is the root of all evil, then what does the resulting no optimization lead to?"

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

  • This was removed by the editor as SPAM

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

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