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 2005 Forums
 SSIS and Import/Export (2005)
 Inserting Excel data to DB [:(]

Author  Topic 

aksana
Starting Member

13 Posts

Posted - 2008-08-11 : 03:39:59
hi, everyone.
At last I installed SSIS and BIDS on ServerMachine.
Then I have a problem inserting excel data into DB.

Im trying to insert Excel date to 2 tabels.
but I dont know how to insert into 2 tables,,,
I did for single table.

These are a excel and tables.
Excel: 1 sheet
4 culomns(column1,column2,column3,column4)

DB:
TBL_one: 5 columns(id[auto_increment],col1,col2,col3,col4)
TBl_two: 5 columns(id[auto_increment],c1,c2,c3,c4)

I would like to insert like this below.
column1:col1 @TBL_one
column2:col2 @TBL_one
column3:c3 @TBL_two
column4:c4 @TBL_two

does someone know how to do that?
when I was trying to do this, I could find the GUI to do table mapping. I found the column one.

if you do, could you please tell me???

thank you,
aksana

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-11 : 03:59:59
I think what you could do is to transfer the excel data as is to a staging table and then use sql command task to transfer required columns to your two tables seperately.
Go to Top of Page

aksana
Starting Member

13 Posts

Posted - 2008-08-12 : 02:13:24
hi, visakh16

thanks for replying.
As you said "transfer the excel data as is to a staging table", how do I do that????
The truth I dont know how to use whatever in the tool box.
Do I have to create a staging table??

If you know some good web site telling how to use BI Development studio,
could you please tell me??

thank you,
aksana
Go to Top of Page

dexter.knudson
Constraint Violating Yak Guru

260 Posts

Posted - 2008-08-12 : 08:37:18
See http://msdn.microsoft.com/en-us/library/ms167031.aspx
Go to Top of Page
   

- Advertisement -