filmov
tv
SSIS Part 152-Load Only Matching Column Data to SQL Server Table from Excel Files Dynamically

Показать описание
How to Load Only Matching Column Data to SQL Server Table from Excel Dynamically in SSIS Package - SSIS Tutorial
Link to website for script used in video Load only matching column data from Multiple Excel files with Single/Multiple Sheets to SQL Server Table
You are working as ETL Developer/SSIS developer for Financial firm. You get Excel files in source folder with single sheet that you need to load into SQL Server Table called dbo.Customer in TechbrothersIT Database.
Here is the definition of dbo.Customer Table.
CREATE TABLE dbo.Customer (
id INT
,NAME VARCHAR(50)
,dob DATE
)
There are some problems with Excel Sheet data
1) Sometime you get exact number of columns in Sheet
2) Sometime you get extra columns in Excel file Sheets
3) Sometime you get less columns than your table definition.
4) Excel File can be provided with any name in given folder
5) Sheet Name can change as well in each Excel file
You want to developer an SSIS Package, that should be able to handle above situation and load all data for columns which match with our SQL Server Table Definition( dbo.Customer).
It should ignore extra columns in Excel sheets and load the matching columns data without error. If we receive less columns in Excel sheet, It should go ahead and load that into table. What would be your approach to developer this type of SSIS Package?
Items you will learn in this video
How to load Data from Excel Files to SQL Server Table by using C#
How to Read Sheet Name from Excel File in SSIS Package
How to read Excel File Name in SSIS Package
How to Check matching Header Column Names to SQL Server Table by using C sharp
How to save scalar string value from SQL Server Query to Variable in C Sharp
How to use BulkCopy to load data from DataTable to SQL Server Table
How to Map Columns Dynamically in BulkCopy C Sharp
Link to website for script used in video Load only matching column data from Multiple Excel files with Single/Multiple Sheets to SQL Server Table
You are working as ETL Developer/SSIS developer for Financial firm. You get Excel files in source folder with single sheet that you need to load into SQL Server Table called dbo.Customer in TechbrothersIT Database.
Here is the definition of dbo.Customer Table.
CREATE TABLE dbo.Customer (
id INT
,NAME VARCHAR(50)
,dob DATE
)
There are some problems with Excel Sheet data
1) Sometime you get exact number of columns in Sheet
2) Sometime you get extra columns in Excel file Sheets
3) Sometime you get less columns than your table definition.
4) Excel File can be provided with any name in given folder
5) Sheet Name can change as well in each Excel file
You want to developer an SSIS Package, that should be able to handle above situation and load all data for columns which match with our SQL Server Table Definition( dbo.Customer).
It should ignore extra columns in Excel sheets and load the matching columns data without error. If we receive less columns in Excel sheet, It should go ahead and load that into table. What would be your approach to developer this type of SSIS Package?
Items you will learn in this video
How to load Data from Excel Files to SQL Server Table by using C#
How to Read Sheet Name from Excel File in SSIS Package
How to read Excel File Name in SSIS Package
How to Check matching Header Column Names to SQL Server Table by using C sharp
How to save scalar string value from SQL Server Query to Variable in C Sharp
How to use BulkCopy to load data from DataTable to SQL Server Table
How to Map Columns Dynamically in BulkCopy C Sharp
Комментарии