Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Excel to SQL Server

Author  Topic 

abhijaiswal.84
Starting Member

29 Posts

Posted - 2012-05-29 : 04:37:47
Hi,

I want to Transfer the data from 3 Excel files (Same column name for all 3 excel-file) to SQL Server table through SSIS package, with some condition,

In excel-sheet there are 25 columns and 572 Rows, the first row is blank next 8 rows are having data in only 'column A' and the 10th Row is having column heading.

Now I want when I am transfering data from 3 excel-files to SQL Server table through SSIS package, the data from Row 11 should be inserted into table, as the row 10 will be used for mapping and should iliminate (Remove/ should not Insert) data from row 1 to row 9 in the table.

Can you please help me to do this task.

Thanks in advance.

Abhishek

abhijaiswal.84
Starting Member

29 Posts

Posted - 2012-05-29 : 04:41:22
Here I am using 3 excel source, one Union_all Transformation and one SQL destination, all the data from 3 excel files are going in single SQL Server table

Abhishek
Go to Top of Page

Gigabyte
Starting Member

30 Posts

Posted - 2012-05-29 : 16:39:02
How about using bulk insert !

I believe you need to do little scrubbing work before you load the excel files.

SATISH GEDDAMURI
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-05-29 : 17:20:51
quote:
Originally posted by Gigabyte

How about using bulk insert !

I believe you need to do little scrubbing work before you load the excel files.

SATISH GEDDAMURI

BULK INSERT won't work with Excel files, only CSV or other text formats.
Go to Top of Page

Gigabyte
Starting Member

30 Posts

Posted - 2012-05-29 : 19:15:20
My bad ! Overlooked the statement ....true

SATISH GEDDAMURI
Go to Top of Page
   

- Advertisement -