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 Manager||Description|
|ADO||This 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.NET||This is used to connect to a data source by using a .NET provider. Please refer ADO.NET Connection Manager in SSIS article.|
|CACHE||Reads data from the data flow or a cache file (.caw) and can save data to the cache file.|
|DQS||Connects to a Data Quality Services server and a Data Quality Services database on the server.|
|EXCEL||Connects to an Excel workbooks file. Please refer to Excel Connection Manager in SSIS to understand the configuration settings.|
|FILE||Connects to a file or a folder. Please see the File Connection Manager to know the configuration settings.|
|FLATFILE||Connect to data in a single flat file.|
|FTP||This will connect to an FTP server. Please refer to the FTP Connection Manager.|
|HTTP||Connects to a web server.|
|MSMQ||Connects to a message queue.|
|MSOLAP100||Connects to an instance of SQL Server Analysis Services or an Analysis Services project.|
|MULTIFILE||Connects to multiple files and folders.|
|MULTIFLATFILE||Connects to multiple data files and folders.|
|OLE DB||Connects to a data source by using an OLE DB provider. Please refer OLE DB Connection Manager in SSIS article to understand the configuration settings.|
|ODBC||Connects to a data source by using ODBC.|
|SMOSERVER||Connects to a SQL Server Management Objects (SMO) server. Please refer SMO Connection Manager article to understand the configuration settings.|
|SMTP||Connects to an SMTP mail server.|
|SQL MOBILE||Connects to a SQL Server Compact database.|
|WMI||Connects 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.
Right-click on the Connection Managers folder present in the solution explorer and select the New Connection Manager option from the menu.
When you click on the New Connection Manager option, an Add SSIS Connection Manager window opened to select the connections managers from the list.
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.
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.
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.
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.
We successfully created the Project level SSIS Connection Manager.
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.
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.
Here we selected the OLEDB Connection Manager. Again we have to follow the step as mentioned earlier to configure the connection manager.
From the above screenshot, you can observe that there is one Project Level Connection Manager and one Package Level SSIS Connection Manager.