Link to home
Create AccountLog in
Avatar of srionline2k6
srionline2k6Flag for United States of America

asked on

How to unzip the compressed files into the local folder and then read it from there usign sql server ssis


I am an ssis developer and I need to create an ssis package where I have the CSV files which are compressed in .gz files located at located at http://LabSql01/oxford/mst/import/ .  The files are named  with the convention of <table name>.csv.gz  How can i use the script task to get the files unzipped into the local folder and then get the files from the unzipped folder to read through the file.
There is only one file that exists in the unzipped folder.

Please guide me through how can i go about it ?
Avatar of Henrik Staun Poulsen
Henrik Staun Poulsen
Flag of Denmark image

you could use the "Execute Process Task" .
This will allow you to run an unzip program.
It must be an unzip program that takes command line parameters. Most do.

You have to remember that the SSIS program must be able to see all the required folders, including where you have stored the unzip program.
ASKER CERTIFIED SOLUTION
Avatar of vdr1620
vdr1620
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.