October 22, 2007 at 4:13 am
Hi !
I'm very new in SSIS 2005, how could I do? to import an Excel file onto SQLServer 2005 table, applying transformation on columns and row read?
I have a file composed by 5 columns (i've also to skip the first two rows)
Column 1 | Column 2 | Column 3 | Column 4 | Column 5
I have to test the Column 2 and applying a new codification by taking the value from a Lookup of another table end copy all the other values in the relative destination.
This in DTS 2000 was too easy, here for me too difficult... 🙁
Thank's for your HELP !
Alex
October 22, 2007 at 4:22 am
Hi ALex,
May I suggest that you separate the tasks into 2 phases:
1. Use SSIS to import the Excel data into a table as it is exactly.
2. Use a following step in the SSIS package, upon the successful completion of 1 above, to do whatever you want using Transact-SQL. For example, you can skip or lookup etc.
Thanks,
Osama
October 22, 2007 at 4:35 am
Osama Kandil (10/22/2007)
Hi ALex,May I suggest that you separate the tasks into 2 phases:
1. Use SSIS to import the Excel data into a table as it is exactly.
2. Use a following step in the SSIS package, upon the successful completion of 1 above, to do whatever you want using Transact-SQL. For example, you can skip or lookup etc.
Thanks,
Osama
Thanks Osama,
is exactly what I would like to do... But what kind of object in "Data Flow Transformation" I've to take for using Transact-SQL?
Alex
October 22, 2007 at 4:43 am
Hi Alex,
It's called: Execute SQL Task.
Here is a link that may be of help.
Good Luck!
Osama
October 22, 2007 at 6:53 am
Thanks Osama,
your solution is useful, but do you know if there's a way to made transformation while charging data without a Temp table?
I mean in Data Flows.... with any kind of "Data Flows Transformation".
Thanks
Alex
October 23, 2007 at 3:43 am
Looks like a typical scenario to use the lookup transformation task.
See BOL
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply