Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS: Accessing value of sensitive parameter for lookup

Tags:

ssis

I have a package that is to use sensitive environment variables. These variables are passwords for symmetric keys to encrypt and decrypt data from the databases, and dynamic SQL must be used, so I must pass the passwords as parameters to the SQL statements in the components. In lookups, the only way to do that is if they are input columns, but I cannot derive columns from the values of sensitive parameters with the error, "Accessing value of the parameter variable for the sensitive parameter "Password" is not allowed. Verify that the variable is used properly and that it protects the sensitive information."

How do I actually use the sensitive parameters within the package itself?

like image 597
plantbeard Avatar asked Oct 19 '25 14:10

plantbeard


1 Answers

you can retrieve sensitive environment variables using script task.

http://www.mattmasson.com/2012/01/retrieving-the-value-of-a-sensitive-parameter-in-a-script/

code sample

string value = Dts.Variables["$Package::tabcmd_password"].GetSensitiveValue().ToString();

here tabcmd_password is the variable name where sensitive info is stored.

like image 88
sandeep rawat Avatar answered Oct 22 '25 04:10

sandeep rawat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!