Is there a way to export the database schema in well formed XML of a MS 2000 SQL Server. I'm looking for just the structure not the data and the more detailed the better. The XML may be used in a migration processes. I'm more familiar with MySQL then with SQL Server so please be detailed if you have time.
Thanks
How about using the information schema views or the underlying systems tables like sysobjects, syscolumns and then using the FOR XML clause to spit out some xml. Here's something to get you started:
Just to show that it is possible, I can't tell you how to create code that will do it, but with some software my friend made, the schema .xml looks something like this. Maybe this can help jumpstart you to create your own code?
And then the data file looks like this:
Users.dat
I wrote an application (dbscript) which generates an XML representation of a database schema (or single schema objects) after importing the schema from a database, or uploading an SQL DDL file.