从一组表中提取 xml 模式
有没有办法从查询中提取 xml 模式。 目的是将模式持久保存在 sql 数据库中。
Is there a way to exract xml schema from a query.
Purpose is to persist the schema in sql db.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,不在 SQL Server 内 - 但如果文件系统中有 XML 文件,则可以使用 xsd.exe 实用程序(或 Visual Studio)来确定可能的 XML 架构基于现有的 XML 文件。
请参阅有关 XSD.EXE 的 MSDN 文档结果
只是一个近似值,并不总是完美的 - 但这是一个开始!
Not within SQL Server, as far as I know - but you if you have your XML files in the file system, you can use the
xsd.exe
utility (or Visual Studio) to determine a possible XML schema based on the existing XML files.See MSDN docs on XSD.EXE for how it works etc.
The result is just an approximation and not always perfect - but it's a start!