Flat File Connection ConnectionString Expression-Builder and Variable Scope

I'm trying to set the connectionstring property of a Flat File Connection. When I try to use a variable, I only see the package level variables. How do I get an expression to use a variable scoped at the container level variables?

July 18th, 2011 5:25pm

You can't.  Connection Managers are package scope objects (you can use them at any level - they can't be limited in scope).
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2011 5:56pm

Ok. I admit I was hoping for a different answer but from what I see it makes sense. Connections are for packages so they only see package variables.
July 18th, 2011 6:22pm

But........ I did find away around it. Use a script component or script task in the sequence or data flow to apply the value of the "lower" variables to the connection. Absolute money! Worked like a champ. :)
Free Windows Admin Tool Kit Click here and download it now
July 19th, 2011 1:18pm

Hi Abercrombie07, how can i do that i tried to add a script component but didnt know how to configure it.

Thank you

May 24th, 2015 6:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics