In this video we will learn How to perform Update Operation in OLE DB Command Transformation in SSIS Package.
We will learn the disadvantages of using OLE DB Command Transformation for Update Operation and what other options we have to perform Update in SSIS Package.
In this OLE DB Command Transformation Demo , we will learn
- How to Read data from Flat File Source in SSIS Package
- How to Create Table in SQL Server Database
- How to write Update statement with Input Parameter for OLE DB Command Transformation
- How to map input Columns to OLE DB Command Transformation Parameters for Update Operation
Script used in Video: How to use OLE DB Command Transformation for Update Operation
USE [Test]
GO
--Create Table for Update Records
CREATETABLE [dbo].[Customer](
[CustomerID] [int] IDENTITY(1,1) NOTNULL,
[CustomerName] [varchar](100) NULL,
[RegionCode] [varchar](100) NULL
)
Select * From [dbo].[Customer]
--Prepare Update Query for OLE DB Command Transformation in SSIS Package
Update dbo.Customer
set RegionCode=?
WHERE CustomerName=?
Update Records in SQL Server Table by using OLE DB Command Transformation in
SSIS Package