How to Run multiple Stored Procedure in Execute SQL Task with Input Parameters - SQL Server Integration Services(SSIS) Tutorial

In this video we will learn how to run Multiple Stored Procedures in single Execute SQL Task and map their parameters to different variables.

You will be able to learn following Items from this video
  1. How to create an SSIS Package from Scratch
  2. How to create variables in SSIS Package
  3. How to create Sample Stored Procedures with input parameters
  4. How to map Stored Procedures input Parameters to variables in Execute SQL Task


Script to Create Sample Stored Procedures with Input Parameters

use Test
go
--drop table [dbo].[Customer]
CREATE TABLE [dbo].[Customer](
    [CustomerID] [int] identity(1,1),
    [CustomerName] [varchar](100) NULL,
    [RegionCode] [varchar](100) NULL
)

Select * from [dbo].[Customer]


Create procedure dbo.InsertCustomer_EU
@RegionCode VARCHAR(100)
as
BEGIN
Insert into dbo.Customer ( CustomerName,RegionCode)
values ('Aamir',@RegionCode)
end


Create procedure dbo.InsertCustomer_NA
@RegionCode VARCHAR(100)
as
BEGIN
Insert into dbo.Customer ( CustomerName,RegionCode)
values ('Aamir',@RegionCode)
end




Execute Multiple Stored Procedure in Execute SQL Task with Input Parameters in SSIS Package



 Related Posts / Videos on Execute SQL Task 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.