SSIS Connection Manager Not Storing SQL Password

后端 未结 10 1846
灰色年华
灰色年华 2020-12-14 15:38

I used to have a dts that had a sql server authentication connection. Basically, the userid password is stored in the package itself. Now, when I go to SSIS, the password is

相关标签:
10条回答
  • 2020-12-14 16:09

    You can store the password in the configuration string by going to properties and adding password=yourpassword, but it's very important to put a space after the ; on the line before password and after the ; on the password line, as shown below:

    Data Source=50.21.65.225;User ID=vc_ssis; 
    password=D@mc317Feo; 
    Initial Catalog=Sales;
    Provider=SQLNCLI10.1;
    Persist Security Info=True;Auto Translate=False;
    Application Name=SSIS-PKG_CustomerData-{2A666833-6095-4486-C04F-350CBCA5C49E}IDM11.Sales.dev;
    
    0 讨论(0)
  • 2020-12-14 16:09

    The designed behavior in SSIS is to prevent storing passwords in a package, because it's bad practice/not safe to do so.

    Instead, either use Windows auth, so you don't store secrets in packages or config files, or, if that's really impossible in your environment (maybe you have no Windows domain, for example) then you have to use a workaround as described in http://support.microsoft.com/kb/918760 (Sam's correct, just read further in that article). The simplest answer is a config file to go with the package, but then you have to worry that the config file is stored securely so someone can't just read it and take the credentials.

    0 讨论(0)
  • 2020-12-14 16:13

    There is easy way of doing this. I don't know why people are giving complicated answers.

    Double click SSIS package. Then go to connection manager, select DestinationConnectionOLDB and then add password next to login field.

    Example: Data Source=SysproDB1;User ID=test;password=test;Initial Catalog=ASBuiltDW;Provider=SQLNCLI11;Auto Translate=false;

    Do same for SourceConnectionOLDB.

    0 讨论(0)
  • 2020-12-14 16:16

    I use a variable to store the entire connection string and pass it into the ConnectionString expression. This overwrites all settings for the connection and allows you store the password.

    0 讨论(0)
提交回复
热议问题