简体   繁体   English

将XML文件转换为MS SQL Server数据库

[英]Turn an XML file into an MS SQL Server DB

There are lots of lovely things Visual Studio can do that I don't know about. Visual Studio可以做很多我不知道的可爱事情。 There is one thing I'm looking for that it may or may not be able to do. 我正在寻找一件事,它可能无法执行。

I'm being passed an XML file and I need to display it as a web form. 我正在传递一个XML文件,我需要将其显示为Web表单。 I'll probably build this in ASP.NET MVC because it'll make it quick and simple to do the CRUD operations. 我可能会在ASP.NET MVC中构建它,因为它将使快速而简单地执行CRUD操作成为可能。 I need to add some persistence so I should really convert the schema of the xml file into a single or multiple tables in a SQL Server database. 我需要添加一些持久性,因此我应该真正将xml文件的架构转换为SQL Server数据库中的单个或多个表。

Not that doing this manually is a problem, but is there a tool or technology I'm unaware of that will help with something like this? 并不是说手动执行是一个问题,但是我不知道有没有一种工具或技术可以帮助类似这样的事情?

您可以为此使用SQLXMLBulkLoad,请参阅http://support.microsoft.com/kb/316005

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM