Click here to Skip to main content
13,863,412 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 19 Feb 2013
Licenced CPOL

Load Integration Services Assembly File Into Visual Studio 2010 Project

, 19 Feb 2013
Rate this:
Please Sign up or sign in to vote.
How to load Integration Services Assembly file into Visual Studio 2010 project


SQL Server Integration Services 2012 comes with a new API for scripting packages which is called MOM – Managed Object Model. This API is accessed through the Microsoft.SqlServer.Management.IntegrationServices.dll assembly file. However, when you create an SSIS 2012 project/package using Visual Studio 2010, the assembly file is missing.

In this post, I will show you one of the ways of loading the assembly into project.



We begin by launching Microsoft Visual Studio and create a new Integration Services Project which is located under Business Intelligence Projects category.

After you have assigned a project name, proceed to click and drag the Script Task into Control Flow pane from toolbox.

I have called the package "sS_LoadAssembly.dtsx" and the Script Task "Scripting SSIS 2012″ as shown below:

In Solution Explorer, right click the package "sS_LoadAssembly.dtsx" as shown below:

Click "View Code".

An XML file called "sS_LoadAssembly.dtsx[XML]" is opened.

Take note of the elements under node "DTS:ObjectData" – there is currently a single element called "ScriptProject".

Let’s go back to the file called "sS_LoadAssembly.dtsx[Design".

Right click the script task and click on "Edit"

Under the Script Task Editor, change the "ScriptLanguage" to "Microsoft Visual C# 2010".

Click Edit Script.

Close the script.

Save the changes.

Go back to the "sS_LoadAssembly.dtsx[XML]" XML file.

You will notice that additional elements have been added under node "DTS:ObjectData".

We are interested in the node called "ItemGroup".

Let’s add a reference to the Microsoft.SqlServer.Management.IntegrationServices.dll assembly file as follows:

  • <Reference Include="Microsoft.SqlServer.Management.IntegrationServices, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91″ />

Save all changes.

Go back to the file called "sS_LoadAssembly.dtsx[Design"

Right click the script task and click on "Edit".

Click Edit Script.

Collapse "Namespaces".

Insert the following:

  • using Microsoft.SqlServer.Management.IntegrationServices;


Voilà! Now you can go ahead and access the new API for scripting SSIS 2012.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sifiso W Ndlovu
Technical Lead select SIFISO
South Africa South Africa
Sifiso W. Ndlovu is a certified Microsoft professional who holds a Master’s degree in IT Management from the University of Johannesburg. He specializes on a range of enterprise and consumer technologies using open source and proprietary software. He is the member of the Johannesburg SQL User Group wherein he has made several presentations on User Group Meetings and SQL Saturday sessions. He has written for a number of publications including and

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04 | 2.8.190214.1 | Last Updated 19 Feb 2013
Article Copyright 2013 by Sifiso W Ndlovu
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid