February 14, 2014 at 3:50 pm
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.
February 14, 2014 at 5:09 pm
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.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply