Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Accessing Sensitive Parameters

$
0
0

Hello All,

I have a sensitive parameter in my Project Parameters. I tried to access this through the Script Task as specified in the blog over here

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

When i debug the script "Dts.Variables["$Package::XY"]" throws a runtime exception saying  sensitive parameter cannot be accesed directly. However when i use the following syntax 

Convert.ToString(Dts.Variables["$Package::XY"].GetSensitiveValue());

I always get an empty string. I have tried using a Project and a Package level paramtere to no avail.

Note: When i flip the Sensitive Flag to false. I am able to read the value in the script.


Any ideas?


Regards, Dinesh



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>