Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS connection's initialcatalog removed when adding expression to set it dynamically Expand / Collapse
Author
Message
Posted Friday, February 14, 2014 3:50 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 15, 2014 10:47 AM
Points: 2, Visits: 20
SQL 2012 SSIS package.

I have a package connection that has the initialcatalog set in the connection string/properties page. This package connection also has an expression defined to set the initial catalog at runtime according to a passed in parameter. It works fine.

I am trying to create a second package in this same manner, but the connection does not seem to want to keep both the hardcoded initialcatalog and the expression to set it dynamically.

I can hardcode the initcatalog just fine, when when I add the expression to set it dynamically later, it clears out the initialcatalog I added.

What am I missing, why was I able to do this in the other package? I compared as much as I can think of between the two packages, all seems similar.
Post #1541796
Posted Friday, February 14, 2014 5:09 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 15, 2014 10:47 AM
Points: 2, Visits: 20
Bah, nevermind.

Delay Validation set to True is working for the remainder of the packages I am creating.

However...

What made me think DV was not involved was that my first package had DV set to False. As I was comparing my first package (that worked fine and had both an expression to set initialcatalog and a hardcoded initialcatalog in the connection string) to my second package (initcatalog would get cleared when I added an expression to set initcatalog) both had DV set to false.

So, somehow, my first package was able to have an expression for initialcatalog as well as the connection string; not sure how that happened.
Post #1541806
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse