Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify a password on the command line of an SSIS package run

I am having an issue where I need to be able to specify the password when I run my packages.

This article http://support.microsoft.com/kb/918760 says:


Method 3: Set the SSIS Package ProtectionLevel property to EncryptSensitiveWithPassword
Change the SSIS Package ProtectionLevel property to EncryptSensitiveWithPassword. This setting uses a password for encryption. You can then modify the SQL Server Agent job step command line to include this password.


That all sounds well and good. But where and how to you specify the password?

Here is an example of my current command line:

/FILE "C:\Program Files\Microsoft SQL Server\100\DTS\Packages
       \MainSSISPackage.dtsx"  /CONFIGFILE "C:\Program Files
       \Microsoft SQL Server\100\DTS\Packages\DataConfig.dtsConfig"
        /CHECKPOINTING OFF /REPORTING E
like image 760
Vaccano Avatar asked Dec 12 '22 22:12

Vaccano


1 Answers

What about this?

/De[crypt] password 

https://learn.microsoft.com/en-us/sql/integration-services/packages/dtexec-utility?view=sql-server-ver16

like image 78
Claudio Redi Avatar answered Dec 28 '22 09:12

Claudio Redi