Tutorial Gateway

  • C
  • C#
  • Java
  • Python
  • SQL
  • MySQL
  • Js
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • Alteryx
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Python Programs
    • Java Programs

SSIS OLE DB Destination

by suresh

The SSIS OLE DB Destination is used to load data into a variety of database tables or views or SQL Commands. OLE DB destination editor provides us the choice to select the existing table(s), View(s), or you can create a new table. In this article, we will show you how to configure SSIS OLE DB destination to load or store data into the SQL Server Database.

NOTE: The SSIS OLE DB Destination uses the OLE DB Connection Manager to create a connection with relational databases

Configuring SSIS OLE DB Destination

STEP 1: Drag and drop the data flow task from the toolbox to the control flow. Next, rename it to SSIS OLE DB Destination.

SSIS OLE DB Destination 1

Double click on it will open the data flow tab.

STEP 2: Drag and drop OLE DB Source and OLE DB destination on to the data flow region. In this example, we will explain the OLE DB destination only. So, please refer OLE DB Source in SSIS article to understand the steps involved in creating it.

SSIS OLE DB Destination 3

Before we start, please Double click on the OLE DB source to see the SQL Command we used. From the below screenshot you can see that, we are using the [Dim Products] and [Fact Internet Sales] tables present in the Adventure Works DW 2014 database

SSIS OLE DB Destination 2

SQL Command we used in the above screenshot is:

USE AdventureWorksDW2014
GO
SELECT PROD.[EnglishProductName]
     ,PROD.[Color]
     ,[SalesOrderNumber]
     ,[UnitPrice]
     ,[ExtendedAmount]
     ,[ProductStandardCost]
     ,[TotalProductCost]
     ,[SalesAmount]
     ,[TaxAmt]
     ,[Freight]
FROM [FactInternetSales]
INNER JOIN
[DimProduct] AS PROD ON
  [FactInternetSales].[ProductKey] = PROD.[ProductKey]

STEP 3: Double-click on the SSIS OLE DB Destination will open the to OLE DB Destination Editor. Use this to configure the target database. Below screenshot will show you the list of available options in the Connection Manager tab:

  • OLE DB Connection Manager: Here, you have to select the existing OLE DB Connection Manager (if any); otherwise, click on the new button to create one. For this example, we are using the already created Connection manager.
  • Name of the table or the View: Here, you have to select the existing table or view to store the data. Otherwise, click the New button to create a new destination table.
  • Keep Identity: Please specify whether you want to load the identity values into the destination table or not by checking this option. This option is available only for the fast loads, and it unchecked by default.
  • Keep Nulls: Please specify whether you want to load the NULL values into the destination table or not by checking this option. This option is available only for the fast loads, and it unchecked by default.
  • Table Lock: While loading the data, Please specify whether you want to Lock the destination table or not
  • Check Constraints: While loading the data, please specify whether the destination table Check Constraints or not.
  • Rows Per Batch: Please specify the number of rows you want to send per batch. In real-time, it is always advisable to specify the value, and this can improve your performance.
  • Maximum insert commit size: Please specify the maximum batch size here.
SSIS OLE DB Destination 4

STEP 4: Within the Data Access Mode, we have multiple options. Here, we have to select one of the following options to load data into the OLE DB destination:

  1. Table or View: Select this option to load data into the table or View.
  2. Table or View – Fast Load: Select this SSIS OLE DB Destination option to load data into the table or View and use the fast load option.
  3. Table name or View name Variable: Select this option, if you stored your destination table or View name inside the Variable and use the fast load option.
  4. Table name or View name Variable – Fast Load: Select this option, if you stored your destination table or View name inside the Variable.
  5. SQL Command: Load the data into SSIS OLE DB destination using the custom SQL Command

Remember, In your OLE DB Connection Manager

  • If you are using Microsoft OLE DB provider to access the SQL Server, use Fast load option, it means either you can use option 2 or 4.
  • If you are using SQL Server Native Client to access the SQL Server, use either option 1, 3.
SSIS OLE DB Destination 5

STEP 5: If you click on the down arrow button beside the Name of the table or the View option. It will display the list of available Tables and Views present in the current connection manager.

SSIS OLE DB Destination 6

For the time being, we are selecting the existing table Table called [SSIS OLE DB Destination]. If you haven’t created the table before, or you want to create a new table for this example, then click on the New button. It will open the new window to write your custom SQL Query to Create New table.

SSIS OLE DB Destination 7

View Existing Data..: This button will help you to see the already existing data in your target table.

STEP 6: Click on the Mappings tab to check whether the source columns exactly mapped to the SSIS OLE DB destination columns.

SSIS OLE DB Destination 8

STEP 7: Clicking OK to finish configuring the SSIS OLE DB Destination package. Let us run the package and see whether we transferred the data from OLE DB Source to OLE DB Destination or not

SSIS OLE DB Destination 9

Let us open the SQL Server Management Studio Query window to Preview the data. From the below screenshot, you can observe that we successfully loaded the incoming data into the SQL Server table using SSIS OLE DB Destination.

SSIS OLE DB Destination 10

Placed Under: SSIS

  • What is SSIS
  • Install SQL Server Data Tools
  • Learn SSIS in 28 Days
  • Create a SSIS Project
  • Create SSIS Package
  • SSIS Connection Manager
  • OLE DB Connection Manager
  • SSIS ADO Connection Manager
  • ADO.NET Connection Manager
  • SSIS Cache Connection Manager
  • SSIS Excel Connection Manager
  • SSIS File Connection Manager
  • SSIS FTP Connection Manager
  • SSIS SMO Connection Manager
  • Source Assistance in SSIS
  • Flat File Source in SSIS
  • OLE DB Source in SSIS
  • Excel Source in SSIS
  • ADO.NET Source in SSIS
  • SSIS FLAT FILE Destination
  • SSIS OLE DB Destination
  • SSIS ADO.NET Destination
  • SSIS Transformations
  • SSIS Audit Transformation
  • SSIS Aggregate Transformation
  • SSIS Aggregate Advanced Mode
  • SSIS Cache Transformation
  • SSIS Character Map
  • SSIS Conditional Split
  • SSIS Copy Column
  • SSIS Data Conversion
  • SSIS Derived Column
  • SSIS Export Column
  • SSIS Fuzzy Grouping
  • SSIS Fuzzy Lookup
  • SSIS Import Column
  • SSIS Lookup Introduction
  • Lookup – OLE DB Connection
  • SSIS Lookup in Full Cache Mode
  • SSIS Lookup – Case Sensitivity
  • SSIS Merge Transformation
  • SSIS Merge Join Transformation
  • SSIS Merge Join – Left Outer Join
  • SSIS Merge – Right Outer Join
  • SSIS Merge Join – Full Outer Join
  • SSIS Multicast Transformation
  • SSIS OLEDB Command
  • OLEDB Command – Delete Data
  • OLEDB Command-Update Data
  • SSIS Percentage Sampling
  • SSIS Pivot Transformation 2008
  • SSIS Pivot Transformation
  • SSIS Row Count Transformation
  • SSIS Row Sampling
  • Script Component as Source
  • Script Component as Destination
  • SSIS Script as Transformation
  • SSIS Sort Transformation
  • SSIS SCD Type 0
  • SSIS SCD Type 1
  • SSIS SCD Type 2
  • SSIS Term Lookup
  • SSIS Term Extraction Intro
  • Term Extraction – Extract Nouns
  • SSIS Extract Noun Phrases
  • Extract Nouns & Noun Phrases
  • Term Extraction – Exclusion Tab
  • SSIS Unpivot Transformation
  • SSIS Union All Transformation
  • SSIS For Loop Container
  • SSIS ForEach File Enumerator
  • SSIS ForEach SMO Enumerator
  • SSIS ForEach Variable
  • SSIS Foreach NodeList
  • Foreach ADO.NET Schema Rowset Enumerator
  • SSIS Bulk Insert Task
  • SSIS Data Profiling Task
  • Execute T-SQL Statement Task
  • SSIS Execute SQL Task Intro
  • SSIS Execute SQL Task Example
  • Execute SQL Task- Single Rowset
  • Execute SQL Task – Full Row Set
  • SSIS Execute Package Task
  • Execute Packages in SQL Server
  • Execute Packages in File System
  • SSIS Execute Package Project Reference
  • SSIS File System Task
  • SSIS File System Task- Copy Files
  • File System Task-Copy Directory
  • File System Task – Delete Files
  • File System Task – Delete Folder
  • File System Task -Move Directory
  • SSIS File System Task -Move File
  • File System – Move Multiple files
  • File System Task – Rename File
  • File System Task – Set Attributes
  • SSIS FTP TASK
  • SSIS Create Local Directory
  • SSIS Create Remote Directory
  • SSIS FTP Task Send Files
  • SSIS FTP – Send Multiple Files
  • SSIS FTP Task Delete Local Files
  • FTP TASK Delete Local Directory
  • FTP Task Delete Remote files
  • SSIS Delete Remote Directory
  • SSIS FTP Task Receive Files
  • SSIS FTP Receive Multiple Files
  • SSIS Script Task
  • Transfer SQL Server Objects Task
  • Transfer SQL Table Structures
  • Transfer SQL Tables with Data
  • Transfer SQL Stored Procedures
  • Transfer User Defined Functions
  • Transfer SQL Views in SSIS
  • SSIS Web Service Task
  • SSIS XML Task-Validate XML File
  • Transform XML File using XSLT
  • XML Task-XML files Differences
  • Create SSIS Catalog
  • Package Deployment using BIDS
  • Deploy Package Using SQL
  • Deploy using SQL Server Wizard
  • SSIS Breakpoints
  • SSIS Checkpoints
  • SSIS Error Handling
  • SSIS Event Handlers
  • SSIS Transactions
  • SSIS Logging
  • SSIS Parameters
  • SSIS Package Configuration
  • Configure using SQL Server
  • Config using Registry Entry
  • Conf with Environment Variable
  • SSIS XML Configuration File
  • XML Configuration File Part 2
  • SSIS Package Protection Level
  • SSIS Incremental Load
  • Incremental Load Example 2
  • SSIS Remove Double Quotes
  • C Tutorial
  • C# Tutorial
  • Java Tutorial
  • JavaScript Tutorial
  • Python Tutorial
  • MySQL Tutorial
  • SQL Server Tutorial
  • R Tutorial
  • Power BI Tutorial
  • Tableau Tutorial
  • SSIS Tutorial
  • SSRS Tutorial
  • Informatica Tutorial
  • Talend Tutorial
  • C Programs
  • C++ Programs
  • Java Programs
  • Python Programs
  • MDX Tutorial
  • SSAS Tutorial
  • QlikView Tutorial

Copyright © 2021 | Tutorial Gateway· All Rights Reserved by Suresh

Home | About Us | Contact Us | Privacy Policy