从XML保存到SQL

从XML保存到SQL

问题描述:



我有一个从html表单生成的XML文件.
现在如何将数据从xml文件存储到sql服务器?

Hi There,

I have an XML file that is generated from the html form.
Now how can I store the data from xml file to the sql server?

查看一些类似的问题及其答案. http://stackoverflow.com/Questions/384974/trying-to-store-xml-content-into-sql-server-2005-fails-encoding-problem [ http://stackoverflow.com/Questions/704064/what-is-the-best-way-to-save-xml-data-to-sql-server [ http://stackoverflow.com/questions/10795787/importing-data- from-xml-file-to-sql-database [ ^ ]
See some similar questions and their answers..
http://stackoverflow.com/questions/384974/trying-to-store-xml-content-into-sql-server-2005-fails-encoding-problem[^]
http://stackoverflow.com/questions/704064/what-is-the-best-way-to-save-xml-data-to-sql-server[^]
http://stackoverflow.com/questions/10795787/importing-data-from-xml-file-to-sql-database[^]


尝试一下:
http://msdn.microsoft.com/en-us/library/ms189887%28v = sql.105%29.aspx [ ^ ]
Try this:
http://msdn.microsoft.com/en-us/library/ms189887%28v=sql.105%29.aspx[^]