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?
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/
: , , . T-SQL, , , :
http://weblogs.sqlteam.com/peterl/archive/2009/03/05/Extract-XML-structure-automatically.aspx
http://weblogs.sqlteam.com/peterl/archive/2009/06/04/Extract-XML-structure-automatically-part-2.aspx
, # "xsd.exe", .
, : " , "
Microsoft .NET. XmlSerializer (typeof (GeneratedType)), Serialize() Deserialze() , / Xml .
, CodeXS, , : GeneratedType.FromXML(Stream/String) myGeneratedType.Xml .
, XML, , . - XML (.. XML DOM), XML, . :)
XML-, , .
Source: https://habr.com/ru/post/1710712/More articles:Any way to find out which TField is raising EDBClient with the message "Required Field Value".? - exceptionASP.NET(MVC) jQuery Intellisense → Ошибка в ReSharper - jqueryDecode JPEG to get uncompressed data - c ++What is the best way to implement weighted random selection based on two types of variables (in php)? - phpCakePHP database table missing - mysqlThe most efficient idiom for reading a single whole from a file only? - javaWhat is a good C # Windows Forms programming study project? - c #sort in lexicographic order - sortingThe string "Test" <3 "appears as" Test "<3>" in my Rails application - stringС#: Вызов ForEach в созданном во время выполнения List - genericsAll Articles