使用配置文件中的连接字符串获取SSIS包中的连接时出错

时间:2018-07-05 08:04:11

标签: sql-server-2008 ssis connection-string

我在执行SSIS包的过程中遇到了以下错误,该包由Sql Schedule Job运行,并使用用于DB连接的配置文件。作业正在具有管理员权限的其他域用户帐户中运行。 SSIS程序包的保护级别为“不保存敏感”。

Executed as user: domainname\user. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.6560.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  11:59:25 PM  Error: X/X/XXXX 23:59:27.73     Code: 0xC0202009     Source: XYZ Connection manager "DB_1"     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 'USR_1.".  End Error  Error: X/X/XXXX 23:59:27.73     Code: 0xC020801C     Source: Action1 source [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "DB_1" 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  Error: X/X/XXXX 23:59:27.73     Code: 0xC0047017     Source: Action1  SSIS.Pipeline     Description: component "CC source" (1) failed validation and returned error code 0xC020801C.  End Error  Error: X/X/XXXX 23:59:27.73     Code: 0xC004700C     Source: Action1 SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: X/X/XXXX 23:59:27.73     Code: 0xC0024107     Source: Action1      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:59:25 PM  Finished: 11:59:27 PM  Elapsed:  1.966 seconds.  The package execution failed.  The step failed.
在软件包设计期间使用

Sql用户USR_1。但是数据库连接字符串在配置文件USR_2中具有不同的Sql登录名。更改Sql用户USR_2的登录密码后,开始出现此错误。但是我们能够使用新密码将SQL MGMT Studio与USR_2连接。当我们在COnfig文件中使用USR_1用户及其密码时。此错误不会出现。

1 个答案:

答案 0 :(得分:0)

我已找到此问题的根本原因。 密码中存在一些不需要的字符。 [](),; ? *! @ =。