使用配置文件中的连接字符串在 SSIS 包中获取连接时出错
Error on Acquiring Connection in SSIS package using Connection string from Configuration File
在 Sql 计划作业 运行 执行 SSIS 包并使用数据库连接的配置文件期间,我遇到了以下错误。工作 运行 在具有管理员权限的不同域用户帐户中。 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。当我们在配置文件中使用 USR_1 用户及其密码时。这个错误不来。
我找到了这个问题背后的根本原因。
密码中存在一些不需要的字符。
[] () , ; ? *! @=.
在 Sql 计划作业 运行 执行 SSIS 包并使用数据库连接的配置文件期间,我遇到了以下错误。工作 运行 在具有管理员权限的不同域用户帐户中。 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。当我们在配置文件中使用 USR_1 用户及其密码时。这个错误不来。
我找到了这个问题背后的根本原因。 密码中存在一些不需要的字符。 [] () , ; ? *! @=.