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.
is pronounced ree-bar and is a Modenism for R
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.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs