How to read a remote xml file from SQL Server 2005

邮差的信 提交于 2019-12-13 03:17:41

问题


Can I read a XML file from remote server such as

http://dealer.somedomain.com/data/inventory.xml

I need read and get data from this remote XML file and update some local tables.

I use SQL Server 2005.

Thanks in advance.


回答1:


Your task can be split into two sub-tasks.

  1. Downloading the file over HTTP to your local PC (to a temporary folder).
  2. Importing the XML file into SQL Server.

You can use SSIS for both. Once you look for "SSIS downloading over HTTP" or "SSIS downloading from website" you will find many tutorials for file download.

For the second step you will need data import, there are plenty tutorials as well, here is just an interesting pick.

You can find ready solutions including data download and import all-in-one, like here.



来源:https://stackoverflow.com/questions/8238229/how-to-read-a-remote-xml-file-from-sql-server-2005

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