Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2008 SSIS';s作业验证错误_Sql Server 2008_Ssis - Fatal编程技术网

Sql server 2008 SSIS';s作业验证错误

Sql server 2008 SSIS';s作业验证错误,sql-server-2008,ssis,Sql Server 2008,Ssis,我已在工作站中创建了SSIS包。 它一直工作到最后一分钟,当我把它移到服务器上时(NT用户在两台台式机PC和我的PC上都是相同的) 保护级别设置为EncryptSensitiveWithPassword 下面是运行atempts的作业产生的输出错误 Error: 2012-08-17 11:57:04.74 Code: 0xC0202009 Source: CCTSQLBajadas Connection manager "MyPackage" Description:

我已在工作站中创建了SSIS包。 它一直工作到最后一分钟,当我把它移到服务器上时(NT用户在两台台式机PC和我的PC上都是相同的)

保护级别设置为
EncryptSensitiveWithPassword

下面是运行atempts的作业产生的输出错误

    Error: 2012-08-17 11:57:04.74
   Code: 0xC0202009
   Source: CCTSQLBajadas Connection manager "MyPackage"
   Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E4D  Description: "Login failed for user 'COMPANY\TTP321$'.".
End Error
Error: 2012-08-17 11:57:04.76
   Code: 0xC020801C
   Source: call view populate replace [157] //name of one the steps inside the package.
   Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "MyPackage" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error
对我来说奇怪的是,用户“COMPANY\TTP321$的行
登录失败,因为COMPANY是网络,TTP321是服务器的主机名。它不应该是我的NT用户名吗?因为包中使用的连接都在我的用户名下。当然,如果它尝试执行
COMPANY\TTP321$

你知道程序包使用这个特殊的用户名在哪里运行吗?
谢谢。

COMPANY\TTP321$是运行SQLAgent的用户ID,因此您的包也使用该用户的权限运行。如果要使用用户名运行,需要在SQLAgent中进行设置。

是否确定COMPANY\TTP321$可以访问该数据库?它不存在(COMPANY\TTP321$)甚至不存在),正确的用户是COMPANY\MyUserName。SSIS包中就是这样设置的。我不确定计划作业为何试图以这种方式访问。我猜TTP321$是运行SQLAgent的域帐户。您需要在SQLAgent中设置运行包的帐户,而不是在包中。宾果!现在它开始工作了。请将此作为答案提交,以便您获得信任,并希望它能在未来帮助人们。