CONFIGURING AN SSIS OLE DB CONNECTION MANAGER

An OLE DB connection manager enables a package to extract data from or load data into any OLE DB-compliant data source.

Add and configure an OLE DB connection manager

  1. To do this, we first of all download and install the AdventureWorksDW2012 dataset
C:\Users\user\Desktop\bluetooth\1746167968680.jpg
  1. Copy the link C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup, go to any location in your windows and paste it.
C:\Users\user\Desktop\bluetooth\1746167968657.jpg
  1. It will navigate you straight to where the databases are kept.
C:\Users\user\Desktop\bluetooth\1746167968633.jpg
  1. Copy the downloaded data set and paste it in the location of the databases.
C:\Users\user\Desktop\bluetooth\1746167968610.jpg
  1. Open your Microsoft SQL server management studio
C:\Users\user\Desktop\bluetooth\1746167968587.jpg
  1. Right-click Databases in Object Explorer > Restore Database… to launch the Restore Database wizard.
C:\Users\user\Desktop\bluetooth\1746167968563.jpg
  1. Select Device and then select the ellipses (…) to choose a device.
C:\Users\user\Desktop\bluetooth\1746167968534.jpg
  1. Select Add and then choose the .bak file you recently moved to the backup location. If you moved your file to this location but you’re not able to see it in the wizard, SQL Server or the user signed into SQL Server doesn’t have permission to this file in this folder.
C:\Users\user\Desktop\bluetooth\1746167968503.jpg
  1. Select OK to confirm your database backup selection and close the Select backup devices window.
C:\Users\user\Desktop\bluetooth\1746167968478.jpg
  1. Check the Files tab to confirm the Restore as location and file names match your intended location and file names in the Restore Database wizard.
  2. Select OK to restore your database.
C:\Users\user\Desktop\bluetooth\1746167968455.jpg
  1. Go back to object explorer and click on database. You will see that it will expand, showing all the databases. 
C:\Users\user\Desktop\bluetooth\1746167968430.jpg
  1. In the Add SSIS Connection Manager dialog, select OLEDB, then select Add.
C:\Users\user\Desktop\bluetooth\1746167968406.jpg
  1. In the Configure OLE DB Connection Manager dialog box, select New.
C:\Users\user\Desktop\bluetooth\1746167968381.jpg
  1. For Server name, enter localhost. When you specify localhost as the server name, the connection manager connects to the default instance of SQL Server on the local computer. To use a remote instance of SQL Server, replace localhost with the name of the server to which you want to connect.
C:\Users\user\Desktop\bluetooth\1746167968356.jpg
  1. In the Log on to the server group, verify that Use Windows Authentication is selected.
C:\Users\user\Desktop\bluetooth\1746167968333.jpg
  1. In the Connect to a database group, in the Select or enter a database name box, type or select AdventureWorksDW2012.
C:\Users\user\Desktop\bluetooth\1746167968309.jpg
  1. Select Test Connection to verify that the connection settings you have specified are valid.
C:\Users\user\Desktop\bluetooth\1746167968286.jpg
  1. Select OK.
C:\Users\user\Desktop\bluetooth\1746167968263.jpg
  1. Select OK.
C:\Users\user\Desktop\bluetooth\1746167968240.jpg
  1. In the Connection Managers pane, verify that localhost.AdventureWorksDW2012 is selected.
  2. Now we have the local host connection manager
C:\Users\user\Desktop\bluetooth\1746167968217.jpg

Leave a Reply

Your email address will not be published. Required fields are marked *