XSD generation from a MS SQL database using schemas

Posted by madprog on Stack Overflow See other posts from Stack Overflow or by madprog
Published on 2010-05-28T06:25:56Z Indexed on 2010/05/28 6:31 UTC
Read the original article Hit count: 281

Filed under:
|
|

I'm willing to use NDbUnit on a MS SQL database which uses schemas.

I have to generate the XSD schema from the database. Visual Studio has a tool to do that, but Visual Studio 2005 doesn't include the schema information in the generated XSD.

Therefore, NDbUnit fails because the generated SQL queries do not match the database. Worse, when I try to use Proteus, the XSD schema doesn't validate against the database, and Proteus fails with a warning telling that data could be lost if this check was skipped.

So, my question is: is there any tool that would generate my XSD schema properly and from the database information?

© Stack Overflow or respective owner

Related posts about visual-studio-2005

Related posts about xsd