SSIS部署包 - 错误:用户登录失败

时间:2011-10-17 17:51:54

标签: c# sql database tsql ssis

我有一个在BIDS(visual studio)中运行良好的SSIS包,但在SQL Agent中我收到此错误:

“用户'cooldude'登录失败。”来源:执行SQL任务执行SQL任务无法获取连接“server.database.cooldude”。

套餐设置:

1.Encrypt sensitive with password
2.XML configuration files are being used (contains connection 
      string, with windows user name/password)
3.Everythins is under same domain.
4.no "-" in config file names.

SQL代理设置:

1.Runs from File System on same computer that has SQL AGENT
2.SA only has control of SQL Agent, but package runs as
   windows user (in xml connection string.) Not integrated.
3.connections are all selected.

服务器: SQL Server 2008 Sp 1,SQL Server 2000

3 个答案:

答案 0 :(得分:1)

使用“不保存敏感数据”设置重新保存包。然后包将使用xml配置文件中的正确连接字符串。

答案 1 :(得分:0)

SQL Server代理服务运行的帐户是什么?尝试使用具有必要权限的域帐户。

您可以在SQL Server配置管理器中更改此内容。

答案 2 :(得分:0)

如果您打开SQL Server代理,作业,右键单击作业,属性,步骤,选择SSIS包,数据源确保连接字符串按预期设置。

此外,如果对其中一个连接字符串使用集成安全性,请检查“运行方式”下拉菜单并确保其设置正确。这应该是运行包的安全性上下文。

如果一切看起来都很好,请尝试在登录时手动连接到数据库,因为该步骤的“运行方式”下拉列表中指定的用户。 可能还想检查以确保“运行方式”用户的默认数据库存在且用户可以连接到它。

祝你好运。