Question : Extract zipped csv binary files (blobs) from Oracle & upload to sqlserver2008 table

I importing data from an oracle table to my sql server 2008 environment. One of the oracle tables has data stored as blobs. These are zip files that the oracle team receives from an outside vendor daily and they store the zip files as blobs in their oracle tables. I am able to import the oracle table with blob/image data type, however I need further help in processing the zip data. A screenshot of my sql table after the data import is attached.

There are be multiple files per day and I need to have a  SSIS sql job to process daily:
1) Import the Oracle data to Sql 2008 (which I already did)
2) Extract each of the daily zip files locally in sql server. (These are csv files in zip format)  - Need help with this SSIS task.
3) Upload each of the unzipped files to Sql Server detail table. (Assuming all the daily csv files has the same layout/columns, I can use a Foreach loop to upload to detail table - I think I can manage this)

Appreciate your suggestions for the overall process and especially need detailed help with step 2 above.

Thanks
 
 
My Sql2008 table after Oracle data import
327395
 

Answer : Extract zipped csv binary files (blobs) from Oracle & upload to sqlserver2008 table

1- you can use EXPORT COLUMN Transformation for extract each row zip file to  a specified folder
2- then you can use EXECUTE PROCESS Task inside a Foreach Loop to unzip all files in the folder
3- then you can use a Data flow task inside a foreach loop to fetch data from each unzipped csv file to sql server

now let me know what step you have problem in implementation?


Random Solutions  
 
programming4us programming4us