从一组表中提取 xml 模式

发布于 2024-10-08 16:27:13 字数 48 浏览 0 评论 0原文

有没有办法从查询中提取 xml 模式。 目的是将模式持久保存在 sql 数据库中。

Is there a way to exract xml schema from a query.
Purpose is to persist the schema in sql db.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

止于盛夏 2024-10-15 16:27:13

据我所知,不在 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文