Testing integrity of imported data

  • 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.

  • hi

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

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

  • 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.


    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 3 (of 3 total)

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