XSD to SQL Server conversion

自闭症网瘾萝莉.ら 提交于 2019-12-11 07:24:38

问题


I have a question in regards to the SQLXML for SQL Server.

My assignment is to convert an XSD file so that it magically "becomes" tables in the SQL Server database. I've looked around everywhere, on all the links I could possibly find, but nothing clicks. Everything is like a half-step of what I need to achieve.

I am not too familiar with Visual Studio, haven't done much else than running database queries and all the stuff one likes to do in a SQL Server database. Except for XML.

I figured that SQLXML from Microsoft's MSDN would be a good tool to have (and I believe it's already installed).

Any tips or solutions?

Thanks.


回答1:


There's no magic involved, and as it's homework/study I won't detail how to do it myself, but if you direct your research towards SQL's Bulk Load functionality it would seem to be what you need.

Read this article for a brief "how to" guide.

Or this article for a detailed description of how to use it.




回答2:


You can convert XSD to SQL using this approach https://github.com/ujhgj/xsd2sql But I'm not sure of SQL dialect. That thing worked for Mysql.



来源:https://stackoverflow.com/questions/20241258/xsd-to-sql-server-conversion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!