SSIS Connection Manager

As we all know, Microsoft SQL Server Integration Services packages are used to transfer data from different sources to different destinations such as files, Excel Worksheets, SQL Database, Oracle Database. To extract the data or to insert data, we need an appropriate SSIS Connection Manager.

The SSIS Connection Manager includes Connection Strings, which is the combination of Server instance Name, Database Name, provider Name, and credentials.

Built-in SSIS Connection Manager

SQL Server Integration Services provides different types of built-in Connection Managers. The SSIS package will connect to different types of Data Sources such as Oracle, Access, Excel, Text File, SQL Server, SQL Server Analysis Services using Connection Manager. The below table shows the list of SSIS Connection Manager

Please refer to the Cache Connection Manager article to understand the configuration settings.

SIS Connection ManagerDescription
ADOThis Connection Manager is used to connect with ActiveX Data Objects. Or it can be called an ADO object. Please refer ADO Connection Manager in SSIS article to understand the configuration settings.
ADO.NETThis is used to connect to a data source by using a .NET provider. Please refer ADO.NET Connection Manager in SSIS article.
CACHEReads data from the data flow or a cache file (.caw) and can save data to the cache file.
DQSConnects to a Data Quality Services server and a Data Quality Services database on the server.
EXCELConnects to an Excel workbooks file. Please refer to Excel Connection Manager in SSIS to understand the configuration settings.
FILEConnects to a file or a folder. Please see the File Connection Manager to know the configuration settings.
FLATFILEConnect to data in a single flat file.
FTPThis will connect to an FTP server. Please refer to the FTP Connection Manager.
HTTPConnects to a web server.
MSMQConnects to a message queue.
MSOLAP100Connects to an instance of SQL Server Analysis Services or an Analysis Services project.
MULTIFILEConnects to multiple files and folders.
MULTIFLATFILEConnects to multiple data files and folders.
OLE DBConnects to a data source by using an OLE DB provider. Please refer OLE DB Connection Manager in SSIS article to understand the configuration settings.
ODBCConnects to a data source by using ODBC.
SMOSERVERConnects to a SQL Server Management Objects (SMO) server. Please refer SMO Connection Manager article to understand the configuration settings.
SMTPConnects to an SMTP mail server.
SQL MOBILEConnects to a SQL Server Compact database.
WMIConnects to a server and specifies the scope of Windows Management Instrumentation (WMI) management on the server.

Configuring SSIS Connection Manager

In SQL Server Integration Services, there are two types of Connection managers: Package Level Connection Managers and Project Level Connection Managers

Configuring Project Level Connection Manager in SSIS

If you configure the Project Level SSIS Connection Manager, then the connection available to all the packages we created under that project. If you need that connection in multiple packages, then it is good practice to create Project Level Connection Managers in SSIS.

TIP: In real-time, we mostly use Project Level Connection Managers. But there are some situations where we use package-level connection managers.

This example shows how to create or configure Project Level Connection Managers in SQL Server Integration Services (SSIS)

Once you created a new Project under SSIS. If you look at the Solution Explorer, we have a few folders. For now, let us concentrate on the Connection Managers Folder.

SSIS Project Level Connection Manager 1

Right-click on the Connection Managers folder present in the solution explorer and select the New Connection Manager option from the menu.

SSIS Project Level Connection Manager 2

When you click on the New Connection Manager option, an Add SSIS Connection Manager window opened to select the connections managers from the list.

SSIS Connection Manager 3

For the time being, We selected the OLE DB connection manager from the list. Once we selected the OLE DB connection manager, then another window form of Configure OLE DB Connection Manager opened to configure the data connections.

SSIS Project Level Connection Manager 4

If you observe the above, Data Connections pane is empty because we have not created any connection managers before. If we created any connection managers before, then instead of creating them, again and again, we could select them here.

Click on the new button from the above screenshot will open another window form of Connection Manager. Use this to select the Provider, Server Name, and Database Name.

SSIS Project Level Connection Manager 5

From the above screenshot, you can observe that we are using our local host windows account as the server name and [AdventureWorks2014] as the database name.

NOTE: In real-time, you have to select the Use SQL Server Authentication option. Next, provide the valid credentials given by your Admin person.

Click on the Test Connection button provided below to check whether the connection is successful or not.

SSIS Project Level Connection Manager 6

Once we finish configuring the connection managers, the OLE DB connection manager’s name will display in the Data connection pane. So select the created connection manager and click ok.

SSIS Project Level Connection Manager 7

We successfully created the Project level SSIS Connection Manager.

Project Level SSIS Connection Manager 8

From the above screenshot, you can observe the Project Level Connection Manager in SSIS.

Configuring Package Level Connection Managers in SSIS

If you configure Package Level Connection Managers in SSIS, then the connection will be available to that particular package. You can’t access it outside the package.

TIP: If you need that connection in one package only and you don’t use it in another package then, there is no point in creating Project Level Connection Managers. So, go for Package Level Connection Manager.

At the bottom of the package designer, right-click on the Connection Managers pane. It will pop up the context menu to select the connection manager.

Package Level SSIS Connection Manager 1

This Context Menu will show some frequently used connection managers (OLE DB, Flat File, ADO.NET, Analysis Services, and File Connection). If you don’t find the required one, then select the New Connection option.

In this example, we are creating the OLE DB Connection Manager. It means we can select New OLE DB Connection option from the Context Menu. But if you observe from the above screenshot, We chose the New Connection option. It helps you to understand the similarities while creating SSIS Connection Managers.

When you click on the New Connection Manager option, an Add SSIS Connection Manager window form will open to select the connections managers from the provided list.

SSIS Connection Manager 3

Here we selected the OLEDB Connection Manager. Again we have to follow the step as mentioned earlier to configure the connection manager.

Package Level SSIS Connection Manager 2

From the above screenshot, you can observe that there is one Project Level Connection Manager and one Package Level SSIS Connection Manager.

Comments are closed.