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


SSIS Integration Task


SSIS Integration Task

Author
Message
prathibha_aviator
prathibha_aviator
SSC Veteran
SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)SSC Veteran (232 reputation)

Group: General Forum Members
Points: 232 Visits: 271
I have used SSIS a while ago where my requirement was to create a new table out of the excel sheet and name it as master table. I have updated the values of other tables using this master table and automated the whole process using sql server agent Jobs. But Now its a whole different scenario where I have an excel sheet in my local drive and I have my database in one of our test servers.. So Now I should use SSIS to map the columns of the excel sheet with the different existing tables in the database. I am little confused how I am supposed to map different columns from one spreadsheet to differnt columns of different tables..

EXAMPLE:
I have a database 'DATABASE'
I have tables TABLE1, TABLE2, TABLE3
and the spreadsheet SS
So My columns S1, S2, S3 in the Spreadsheet SS are matched to the columns C2 in TABLE1, C5 in TABLE2 and C1 in TABLE3. There is a relationship between all the tables though.. Like C3 is common in all the above tables

My job is to update all the columns accordingly with values in the excel sheet
Please let me know if i can accomplish the above criteria using SSIS and if so, any ideas???

--Pra:-):-)--------------------------------------------------------------------------------
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61781 Visits: 13297
Can you give some sample data?


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
raajkul
raajkul
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 55
If the data in SS are fixed , use below steps:

1> Create a dataflow control tasks in ssis
2> For data flow task - place Excel Source and OLE DB Destination ....say (table test1)
3> In Excel Source data flow task - select "SQL Command" in Data access mode and put query like this
Select * from [Data$A3BigGrin8]

Do like same for other two tables: test2 and test3
for test2 sql command: Select * from [Data$A12BigGrin17]
for test3 sql command: Select * from [Data$A21BigGrin26]
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