Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Remove Desing-time variable values from package


Remove Desing-time variable values from package

Author
Message
okovinko
okovinko
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 95
I develop a set of SSIS-packages with several variables. First, the package loads the database connection string from .dtsconfig file. Then, applies other variable values from database table. The purpose of the package is to load data from web-service and store it into the database.

The first problem may occur when moving to Q&A or Prod environments. In case of any problems with config-file, the package continues loading the data, using design time variables, and rewrites production data with records, loaded from development web-service.

The second problem is distribution. I don't want our customers to see any of our server names. Or other sensitive information.

Are there any means to remove the design-time values from SSIS package before deploying it anywhere?

I cannot protect the package with user key, as it is meant to be distributed. And it doesn't solve the first problem.
AFAIK, there is no way to declare the variable as sensitive (http://www.sqlservercentral.com/Forums/Topic1234330-364-1.aspx)
I'd like to make everything automatic. I can delete all values every time before saving the package, but this won't fit: someone will surely forget to do this.
Eirikur Eiriksson
Eirikur Eiriksson
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6742 Visits: 17717
One way of doing this is to edit the package in a text editor and remove the values that way.

Before:
<DTS:VariableValue DTSBigGrinataType="14">120</DTS:VariableValue>



After:
<DTS:VariableValue DTSBigGrinataType="14"></DTS:VariableValue>



Cool
okovinko
okovinko
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 95
Eirikur Eiriksson (4/12/2014)
One way of doing this is to edit the package in a text editor and remove the values that way.


At this moment, it seems to be the only way to solve my problem.
I use a powershell script to delete the unwanted data.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search