How to create a SQL Server table schema from an XML schema? (with .NET and Visual Studio 2008)

I have an XML schema, and I know that "xsd.exe" can generate C # code for it. But I want to know whether it is possible to automatically create MS SQL Server 2005+ tables from XSD using these or other tools.

BTW I was not able to get the C # code generated using "xsd.exe". What is the difference between the code generated by CodeXS and xsd.exe?

+3
source share
4 answers

You can use the XSD2DB utility

This is an example xsd2db.exe -f true -l [Server name] -n [Database name] -s D: \ po.xsd -t sql

http://xsd2db.sourceforge.net/

+5

, # "xsd.exe", .

, : " , "

Microsoft .NET. XmlSerializer (typeof (GeneratedType)), Serialize() Deserialze() , / Xml .

, CodeXS, , : GeneratedType.FromXML(Stream/String) myGeneratedType.Xml .

, XML, , . - XML (.. XML DOM), XML, . :)

+2

XML-, , .

0

Source: https://habr.com/ru/post/1710712/


All Articles