如何从 SQL Server 2005 读取远程 xml 文件 [英] How to read a remote xml file from SQL Server 2005

查看:33
本文介绍了如何从 SQL Server 2005 读取远程 xml 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从远程服务器读取 XML 文件,例如

Can I read a XML file from remote server such as

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

我需要从这个远程 XML 文件读取和获取数据并更新一些本地表.

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

我使用 SQL Server 2005.

I use SQL Server 2005.

提前致谢.

推荐答案

您的任务可以拆分为两个子任务.

Your task can be split into two sub-tasks.

  1. 通过 HTTP 将文件下载到本地 PC(到临时文件夹).
  2. 将 XML 文件导入 SQL Server.

您可以将 SSIS 用于两者.一旦您查找通过 HTTP 下载 SSIS"或从网站下载 SSIS",您会发现许多 教程 用于文件下载.

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.

这篇关于如何从 SQL Server 2005 读取远程 xml 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆