Newsletter
Join our blog
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Start with the FREE community plan and get your lifetime access to 20+ courses. Get Instant Access Now!
Need help? Talk to an expert: (904) 638-5743
Private Training
Customized training to master new skills and grow your business.
On-Demand Learning
Beginner to advanced classes taught by Microsoft MVPs and Authors.
Bootcamps
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Stream Pro Plus
Combine On-Demand Learning platform with face-to-face Virtual Mentoring.
Certification Training
Prepare and ace your next certification with CertXP.
Private Training
All Courses
View all of the courses available on our on-demand learning platform.
By Learning Path
Explore our courses based on role-specific learning path.
By Product
Find all of the courses for the product you want to master.
Power BI
Turn data into actionable insights with our Power BI courses
Power Apps
Learn to build custom business solutions with ease
Cheat Sheets
Quick references for when you need a little guidance.
Nerd Guides
Summaries developed in conjunction with our Learn with the Nerds sessions.
Downloads
Digital goodies - code samples, student files, and other must have files.
Blog
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Community Discord Server
Start here for technology questions to get answers from the community.
Career Guides
Breaking into the field? Let these guides help get you started with a plan.
Affiliate Program
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
Reseller Partner
It's time to address your client's training needs.
Foundation
Learn how to get into IT with free training and mentorship.
Management Team
Discover the faces behind our success: Meet our dedicated team
Contact Us
How can we help? Connect with Our Team Today!
FAQs
Find all the information you’re looking for. We’re happy to help.
Greetings everyone, and thank you for taking the time to look at this blog. This is my first post and I hope I’m able to answer some of your questions about building packages in SSIS. In this post I will be showing you how to use the object variable to make packages dynamic while using Task Factory, a SSIS product by Pragmatic Works.
The core to what makes this work is how the object variable stores data which is known as a result set. When working in SSIS you will notice that when you create an Object Variable there is no way to input a value, it simply states “System.Object” as seen below.
No need to worry, this is perfectly normal. What happens is that you can load rows of data inside this variable using the native Result Set Destination component and they will all be available in the variable. The trick is how to get this data out and in the format you would like, that’s where the For Each Loop container comes into play. Once you have an object variable populated you can use this component to parse through each row in the Result set and send those values to user defined variables to be used in your SSIS package.
The important thing to note is that the object variable is only populated at run time, which means when a package is done it does not retain data. Also how the object variable holds the data doesn’t allow you to directly use the object variable itself in the development process. Now that we have brief description of what the object variable can do let’s see it in action in the short video below, I hope you enjoy.
Manuel comes from an 8 year hospitality career where customer service was number one. He is currently a product support engineer with Pragmatic Works and works closely with our line of products including Task Factory, BI xPress and DOC xPress. Manuel is rapidly becoming an expert in SSIS and all things SQL Server.
For more information about Manuel and blogs related to SSIS, please visit his blog here.
ABOUT THE AUTHOR
Free Trial
private training
Newsletter
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Leave a comment