Categories
Sql Server

SSIS Package For Conversion Of Flat File To SQL Server

SSIS Package For Conversion Of Flat File To SQL Server

In this tutorial i will explain how to use SSIS Package For Conversion Of Flat File To SQL Server.Or you can say Importing data from a text file to the SQL Server using SSIS(SQL Server Integration Services).In SQL Server 2012 Business Intelligence has been replaced by SQL Server Data Tools.

Steps:

1. Go TO Start > All Programs > Microsoft SQL Server 2012 > Click on SQL Server Data Tools, In SQL Server 2008 or 2005 use Business Intelligence.

2. Create A New Integration Service Project.

3. Now add new connection, Right click on Connection Manager and add a flat file Connection.

SSIS Package For Conversion Of Flat File To SQL Server

4. It will open a window choose Flat file from your system.If the first row of file contains the column name then check the check-box(Columns names in the first data row).You can check preview of data by clicking on preview link.

SSIS Package For Conversion Of Flat File To SQL Server 2012

Package For Conversion Of Flat File To SQL Server

5. Now Add OLEDB Connection.

Flat File To SQL Server

6. New window will open, create a new OLEDB connection by clicking on NEW or use and Existing one.

SSIS Package For Conversion Of Flat File To SQL Server 2008

7. New window will open, Now choose Server name, authentication mode and database which you want to use.Now Test Connection if connection is succeed click OK.

Test Connection SSIS Package

8. Click on Data Flow Task Tab.Now click on Source Assistant and choose Flat File and choose existing connection we have created earlier.In SQL Server 2005 and 2008 Source Assistant is Replaced by Data Flow Sources.

Flat To DB7

9. Click OK and Now click on Destination Assistant and choose SQL Server and then existing Connection.IN SQL Server 2005 and 2008 Destination Assistant has was used as Data Flow Destinations.

Destination Assistant

10. Now our Data Flow task is completed, we can also do some configuration like: Mapping of columns, Creation of table.For that Double click on OLEDB Destination.

Flat To DB10

11. Now Click OK, and save your package.Then run it.Enjoy…

One reply on “SSIS Package For Conversion Of Flat File To SQL Server”

Helpful info. Lucky me I found your website unintentionally, and I am surprised why this coincidence did not happened earlier! I bookmarked it.

Comments are closed.