Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Testing integrity of imported data Expand / Collapse
Author
Message
Posted Monday, February 28, 2011 12:32 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, July 18, 2011 12:05 PM
Points: 7, Visits: 30
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.
Post #1070758
Posted Saturday, October 6, 2012 8:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, October 6, 2012 8:56 AM
Points: 2, Visits: 21
hi
u can goto this link where u can find the answer.
http://www.gcreddy.com/2010/12/qtp-scripts.html
Post #1369434
Posted Saturday, October 6, 2012 9:13 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 5:14 PM
Points: 35,266, Visits: 31,756
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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1369436
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse