运行 使用 SQL 作业打包时出现 SSIS 错误

SSIS error while running package using SQL job

我有 SSIS 程序包,可以将数据从 excel 导入到 SQL 数据库 2012。程序包 运行 很好,并且在我 运行 时提供它应该做的事情它在 visual studio 上。但是,当我尝试 SQL 作业到 运行 包时,它一直在下面给我错误提示。

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "'Q:\Ledger\MajorGL.xlsx' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.".

并且该路径是有效路径。

@zazzu-I 想想,这是一个密码错误 connection.Can 你再检查一下连接吗??

只需保存包并关闭 solution.Again 打开解决方案和包。现在测试连接。

确保:

  • 机器是SQL服务器已安装访问路径:Q:\Ledger\
  • SSIS 所在的用户 运行 有权访问文件 MajorGL.xlsx

Drive Q 听起来像一个网络驱动器,您需要将您的 SQL 作业更改为 运行,并由有权访问该位置的用户进行。 转到 this 文章中名为 USING PROXIES 的部分,并设置您的包以使用此代理执行。