简体   繁体   English

SSIS ODBC源未在SQL Server代理作业中保存密码

[英]SSIS ODBC Source not saving password in SQL Server agent job

I'm trying to build a SSIS package which reads a table from ODBC data source (MySQL) and copies the data to an existing table in OLE DB data destination (MS SQL). 我正在尝试构建一个SSIS包,该包从ODBC数据源(MySQL)读取表并将数据复制到OLE DB数据目标(MS SQL)中的现有表。

It works within Data Tools for SQL, but fails when I try to schedule it using the SQL Server agent job. 它在适用于SQL的数据工具中运行,但是当我尝试使用SQL Server代理作业计划它时失败。 It seems to forget the password attached in the connection string. 似乎忘记了连接字符串中附带的密码。 When I open the connection manager, the connection string was modified to one without the password substring. 当我打开连接管理器时,连接字符串被修改为一个不带密码子字符串的字符串。

I did find this one: SSIS package fails ... But I don't understand how I could use this short answer to solve my problem. 我确实找到了这个: SSIS包失败了...但是我不明白如何使用这个简短的答案来解决我的问题。

Help is highly appreciated! 非常感谢您的帮助! Struggling with this problem for days now. 数天以来一直在与这个问题作斗争。

Look at the protection level of your package. 查看包装的保护等级 The passwords in connection strings are considered "sensitive information" and may not be saved with your package depending on your protection level. 连接字符串中的密码被认为是“敏感信息”,根据保护级别的不同,可能不会与包装一起保存。

You can change the protection level to ensure that the passwords are saved, but a better way to do this would be to store this information in a configuration file. 您可以更改保护级别以确保密码已保存,但是更好的方法是将该信息存储在配置文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM