Quantcast
Channel: Welcome To TechBrothersIT
Viewing all articles
Browse latest Browse all 1878

How to use OLE DB Command Transformation for Insert Operation in SSIS Package - SQL Server Integration Services(SSIS) Tutorial

$
0
0
In this video we will learn How to perform Insert Operation in OLE DB Command Transformation in SSIS Package.
We will learn the disadvantages of using OLE DB Command Transformation for Insert Operation and what other options we have to perform Insert in SSIS Package.

In this OLE DB Command Transformation Demo , we will learn

  1. How to Read data from Flat File Source in SSIS Package
  2. How to Create Table in SQL Server Database
  3. How to write Insert statement with Input Parameter for OLE DB Command Transformation
  4. How to map input Columns to OLE DB Command Transformation Parameters


Script used in Video: How to use OLE DB Command Transformation for Insert Operation

--Create Table in SQL Server Database for Load 
CREATETABLE [dbo].[Customer](
[CustomerID] [int] IDENTITY(1,1) NOTNULL,
[CustomerName] [varchar](100) NULL,
[RegionCode] [varchar](100) NULL
)

Select * From [dbo].[Customer]


--Prepare Statement for OLE DB Command Transformation
insertinto dbo.Customer (CustomerName,RegionCode)
Values (?,?)



How to write insert statement with Parameters in OLE DB Command Transformation in SSIS Package



Viewing all articles
Browse latest Browse all 1878

Trending Articles