SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


creating a package to import data from excel file into sqlserver table


creating a package to import data from excel file into sqlserver table

Author
Message
raj.prabhu001
raj.prabhu001
SSC-Enthusiastic
SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)

Group: General Forum Members
Points: 126 Visits: 115
Hi all,

I am new to SSIS and i want to create a package which will upload data from 3 seperate excel files into
the sqlserver table and then it should fire one update sql on it.

PLease giude me the steps to do so.

Thanks.
Lempster
Lempster
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5113 Visits: 1657
What research have you done so far?

Unless your source Excel files are structured identically, you are going to find it difficult to import the contents of those files into a single table.

We need more information before we can help. Are your 3 Excel files identical in structure?

Regards
Lempster
raj.prabhu001
raj.prabhu001
SSC-Enthusiastic
SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)

Group: General Forum Members
Points: 126 Visits: 115
Yes all the 3 files are identical means they have same columns and same data type.
Lempster
Lempster
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5113 Visits: 1657
raj.prabhu001 (3/25/2014)
Yes all the 3 files are identical means they have same columns and same data type.

Good, that makes things a lot easier! Basically you are going to need a For Each Loop container in the Control Flow that contains a Data Flow Task. The Data Flow task is where you specify how the data in the Excel source files is mapped to your destination SQL Server table.

Have a look at this step-by-step guide: http://bi-polar23.blogspot.co.uk/2007/08/loading-multiple-excel-files-with-ssis.html

For a wider overview of SSIS, have a look at Andy Leonard's 'Stairway to Integration Services' articles here on this site:
http://www.sqlservercentral.com/stairway/72494/

Also, I recommend getting yourself a book (or two) on SSIS.

Regards
Lempster
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search