Load Data To Tables according to Excel Sheet Names from Excel Files dynamically in SSIS Package-P161

Опубликовано: 28 Март 2016
на канале: TechBrothersIT
7k
31

SSIS Tutorial Scenario
Load Data To Tables according to Excel Sheet Names from Excel Files dynamically in SSIS Package

Let's say you get single or multiple Excel files in one of Source Folder. The Excel file can come with single or multiple sheets. The sheet names will be matching with the tables you have in your Database. You want to create an SSIS Package that should loop through Excel files and then Excel Sheets and load the data to table using Sheet Name as it is equal to Table Name.

If in future, you would like to add a new sheet data for existing table. The Package should be able to handle. Same way if you drop the sheet, it should be able to handle the scenario.

Here is my sample data. I have two Excel files, each contains two sheets, Product and Customer. Notice that the order of sheets does not matter. As long as the name matches with your Database tables we are good to load.


Link to Script used in the video




Checkout other videos from TechBrothersIT for Dynamic Excel Source and Destination in SSIS Video playlist

How to Load Data from Excel Files when Number of Columns can decrease or order is changed in Excel Sheet
How to Load Only Matching Column Data to SQL Server Table from Multiple Excel Files (Single Sheet per file) Dynamically in SSIS Package
How to Load Excel File Names with Sheet Names ,Row Count,Last Modified Date, File Size in SQL Server Table
How to Load Multiple Excel Files with Multiple Sheets to Single SQL Server Table by using SSIS Package
How to Load Matching Sheets from Excel to Table and Log Not Matching Sheets Information in SQL Server Table
How to create Table for each sheet in Excel Files and load data to it dynamically in SSIS Package
How to Create Table per Excel File and Load all Sheets Data Dynamically in SSIS Package by using Script Task
How to create CSV file per Excel File and Load All Sheets from Excel File to it in SSIS Package
How to Create CSV File for Each Excel Sheet from Excel Files in SSIS Package
How to Load Excel File Name and Sheet Name with Data to SQL Server in SSIS Package
How to Import data from Multiple Excel Sheets with a pattern of sheet names from Multiple Excel File in SSIS Package
How to import Data from Excel Files for specific Sheet Name to SQL Server Table in SSIS Package
Load Data To Tables according to Excel Sheet Names from Excel Files dynamically in SSIS Package
How to Load Excel Files with Single/ Multiple Sheets to SQL Server Tables according to Excel File Name Dynamically
How to Read Excel Sheet Data after Skipping Rows in SSIS Package by using Script Task
How to read data from Excel Sheet and Load to Multiple Tables by using Script Task in SSIS Package
How to create Excel File Dynamically from SQL server Table/View by using Script Task in SSIS Package
How to create Excel File Dynamically for Stored Procedure Results in SSIS Package by using Script Task
How to Export SQL Server Tables from Database to Excel File Dynamically in SSIS Package by using Script Task
How to Convert CSV/Text Files to Excel Files in SSIS Package by using Script Task
How to Load All CSV Files to Excel Sheets ( Sheet Per CSV) in single Excel File in SSIS Package
How to Load All CSV Files to Single Excel Sheet with File Names in an Excel File Dynamically in SSIS Package
How to Create Sample Excel file with Sheet from each table with Top 1000 Rows per sheet in SSIS Package
How to Export Data to Multiple Excel Sheets from Single SQL Server Table in SSIS Package