We help IT Professionals succeed at work.

Loop Through SSIS Variables

DBL9SSG
DBL9SSG asked
on
585 Views
Last Modified: 2013-11-10
Hello,
I have an SSIS package with 20 different variables defined.  Is there a way to capture all the variables and their values using a script task?

thank you.
Comment
Watch Question

Reza RadConsultant, Trainer
CERTIFIED EXPERT

Commented:
you can use LINQ to get list of variables,
for example:
list<object> myVars=Dts.Variables.ToList<object>()

and then read values as you want
Top Expert 2010
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.