Foreach Loop : SMO Enumerator – SSIS 2012 Tutorial Videos

This Video Tutorial illustrates how to use SMO enumerator to loop through linked servers.

SMO stands for SQL Server Management Objects, and using SMO provides ability to loop through list of metadata objects of SQL Server database or instance. This enumerator can be used for looping through jobs, linked servers, data files of database, and many other metadata structures of SQL Server instance.

In this video you will see an example of using SMO in real-world scenarios;

In this example there are two database servers for customer information; South Island, and North Island. In the destination server a linked server created for any of those servers. with SMO enumerator we will loop through all linked server (even linked server that are not exists now, but might be added in the future), and we fetch customer information from each linked server with a dynamic select command, and we load that into the destination integrated database. This scenario can be used with linked server to other databases such as Oracle, MySQL, DB2…

To view this tutorial follow link below:

To view other SSIS 2012 Tutorial Videos follow this link:

Reza Rad on FacebookReza Rad on LinkedinReza Rad on TwitterReza Rad on Youtube
Reza Rad
Trainer, Consultant, Mentor
Reza Rad is a Microsoft Regional Director, an Author, Trainer, Speaker and Consultant. He has a BSc in Computer engineering; he has more than 20 years’ experience in data analysis, BI, databases, programming, and development mostly on Microsoft technologies. He is a Microsoft Data Platform MVP for 12 continuous years (from 2011 till now) for his dedication in Microsoft BI. Reza is an active blogger and co-founder of RADACAD. Reza is also co-founder and co-organizer of Difinity conference in New Zealand, Power BI Summit, and Data Insight Summit.
Reza is author of more than 14 books on Microsoft Business Intelligence, most of these books are published under Power BI category. Among these are books such as Power BI DAX Simplified, Pro Power BI Architecture, Power BI from Rookie to Rock Star, Power Query books series, Row-Level Security in Power BI and etc.
He is an International Speaker in Microsoft Ignite, Microsoft Business Applications Summit, Data Insight Summit, PASS Summit, SQL Saturday and SQL user groups. And He is a Microsoft Certified Trainer.
Reza’s passion is to help you find the best data solution, he is Data enthusiast.
His articles on different aspects of technologies, especially on MS BI, can be found on his blog:

Leave a Reply