Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Integration Task Expand / Collapse
Author
Message
Posted Wednesday, May 8, 2013 8:55 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 13, 2014 1:48 PM
Points: 104, 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--------------------------------------------------------------------------------
Post #1450867
Posted Tuesday, May 14, 2013 3:43 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:26 AM
Points: 13,622, Visits: 10,514
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?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1452462
Posted Wednesday, May 15, 2013 5:01 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, June 27, 2014 3:56 AM
Points: 10, Visits: 46
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$A3:D8]

Do like same for other two tables: test2 and test3
for test2 sql command: Select * from [Data$A12:D17]
for test3 sql command: Select * from [Data$A21:D26]

Post #1453011
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse