0

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

保护级别设置为EncryptSensitiveWithPassword

这是来自作业运行尝试的输出错误。

    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

对我来说奇怪的是这条线,Login failed for user 'COMPANY\TTP321$因为 COMPANY 是网络,TTP321 是服务器的主机名。不应该是我的 NT 用户名吗?由于包中使用的连接都在我的用户名下。当然,它不会验证它是否尝试做COMPANY\TTP321$

关于包试图使用该特殊用户名在哪里运行的任何想法?谢谢。

4

1 回答 1

2

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

于 2012-08-17T15:47:03.537 回答