Re: How to create a table from an XSD? by Sheila
Sheila
Fri Feb 06 05:00:20 CST 2004
Hi Miha,
Thank you for your reply. I am slightly surprised there is no built in
support for creating tables, but it does explain why I didn't find anything
in the documentation :).
Certainly, Adox would be another approach, but a) it's not very ".Net" and
b) it would probably require more code than just building a Sql string.
Thanks again!
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:uYkFf4J7DHA.452@TK2MSFTNGP11.phx.gbl...
> Hi Sheila,
>
> "Sheila Jones" <sheilavjones@btopenworld.com> wrote in message
> news:%23hQVRhJ7DHA.2056@TK2MSFTNGP10.phx.gbl...
> > Hello,
> >
> >
> >
> > I have a (hopefully) simple question, but can't seem to find the answer.
> It
> > 's easy to retrieve the schema of a database table using ADO.Net, but
what
> > about going the 'other way round', i.e. using a schema to create a
table?
>
> No support there.
>
> > I could write my own code to parse the schema and build the appropriate
> > CREATE TABLE command, but is this re-inventing the wheel? Some pointers
to
> > documentation/sample code etc. would be appreciated. Thanks.
>
> Yes, do that.
> As another solution - you might use Adox.
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & software development
> miha at rthand com
> www.rthand.com
>
>