I need to compare the table structure of two datasets to check for any discrepencies, is this possible?
I had though of converting to XML and comparing but is there a better way?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think it highly depends on what you want to do. If you want to just visualize the differences then I would go with XML and a difference viewer tool.
If you want to see if they are different and maybe display a short list of changed fields (all this inside an app) then you could also go with an XML representation of schema or do as Adams Robinson mentioned. Basically, no matter how you do it, you’ll still have to loop through tables and fields, so you could just as well access them directly and not by transforming them first to XML