S
Sean
Hi,
I am trying to generate in XML the data structure of a SQL
Server 2000 database.
What I need is a means of programmatically generating a
comprehensive XML representation of the whole data
structure , relationships and all.
I want to do this through C#.
I have been using the following code : dataset.WriteXml
("c:\\mySchema.xml", XmlWriteMode.WriteSchema);This will
generate the structure but only at a simple level. For
example I only get the data type and maxlength of the
column and then for only one table.
I am aware that I can also get the
autoincremnt/datatype/unique etc values by calling
datacolumn.unique etc but this seems to be quite an
awkward way of getting things done.
Is this possible ? Any ideas.
Thanks,
Sean.
I am trying to generate in XML the data structure of a SQL
Server 2000 database.
What I need is a means of programmatically generating a
comprehensive XML representation of the whole data
structure , relationships and all.
I want to do this through C#.
I have been using the following code : dataset.WriteXml
("c:\\mySchema.xml", XmlWriteMode.WriteSchema);This will
generate the structure but only at a simple level. For
example I only get the data type and maxlength of the
column and then for only one table.
I am aware that I can also get the
autoincremnt/datatype/unique etc values by calling
datacolumn.unique etc but this seems to be quite an
awkward way of getting things done.
Is this possible ? Any ideas.
Thanks,
Sean.