如何使用SSIS从OneDrive(团队)下载Excel文件?

发布于 2025-02-02 22:43:30 字数 1261 浏览 0 评论 0 原文

我在OneDrive(团队)上有一个Excel文件。我想将来自Excel文件的数据导入SQL表。我可以使用哪些SSIS任务?

这是我尝试过的(

  1. : //www.techbrothersit.com/2016/07/how-to-download-file-file-from-sharepoint-by.html

  2. 在Visual Studio中复制链接

    ,创建新的SSIS项目,创建新连接(HTTP) - 这将创建 http Connection Manager

  3. ,将服务器URL当作从步骤1

  4. 单击测试连接 - 错误:远程服务器返回错误:(403)禁止时,将提供服务器URL。即使我输入凭据,也会得到相同的错误。

如果我将链接粘贴在Web浏览器(隐身模式)中,则它将在浏览器中打开Excel文件。

我还尝试了 odata连接管理器,同样的错误。

其他引用(相同错误):

https:// edimpor.com/@smitagudale712/download-excel-file-file-from-online-inline-insis-a830c32389f5

https://sqlis.com/downloading-a-file-ove-http-the-ssis-way/

I have an excel file on OneDrive (teams). I want to import the data from the excel file into SQL table. Which SSIS task can I use for this?

Here is what I have tried (https://www.techbrothersit.com/2016/07/how-to-download-file-from-sharepoint-by.html)

  1. In Onedrive (teams), Share the file with everyone, copy link

  2. In visual studio, create a new SSIS projects, Create new connection (HTTP) - this creates the HTTP connection manager

  3. In the new http connection give the server url as the link copied from step 1

  4. Click on test connection - error: The remote server returned an error: (403) Forbidden. Even if I enter my credentials then also I get the same error.

If I paste the link in web browser (incognito mode), then it opens the excel file in browser.

I also tried the OData connection manager, same error.

Other references (same error):

https://medium.com/@smitagudale712/download-excel-file-from-online-in-ssis-a830c32389f5

https://sqlis.com/Downloading-a-file-over-HTTP-the-SSIS-way/

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文