Thursday 26 October 2017

Zip and unzip the files using 7-Zip in SSIS

ZIP is an archive file format that supports lossless data compression. A .ZIP file may contain one or more files or directories that may have been compressed.
We have many scenarios that we need to zip many files which we come across and then so some operations like either sending it as an email or just moving the zipped file to some other destinations etc.
 zipping or unzipping manual is a very tedious task. Here we will learn how to zip and unzip files in SSIS.

Let’s see how to zip or unzip the file using 7-Zip in SSIS

Open the SSDT.
Take Execute process task.
  
Before configuring the execute process task see the files which we are going to zip
First, we will zip one file after that we will learn to zip all files in folder
  

Here I am going to Zip Emp.txt file.
Now I am configuring the Execute process task.
  

There below properties, we need to configure
Ø  Executable
Ø  Arguments
Ø  Working Directory

Executable:

Here we need to set the exe path of 7-Zip



Select the 7z Executable exe.
Click ok.

Arguments

In Arguments, we need to give the zip command and zip file name and file name
a -t7z "F:\Emp.ZIP" "F:\Emp.txt"
a –t7z is used for zipping.

Working Directory

Where we want to zip the files
F:\


Now click ok.
Now the package is ready to run.


Before running the package.


Now I am running this package.


The package is completed successfully. See the output.


Zipped the file.


Zip all files from a folder

For zipping the files from a folder we need to change argument
  
If we give *.* then it will take files. If we to archive some specific file format then we need to give *.File extension (e.g. *.txt, *.cvs etc)
Click ok.
Package is ready to run
Before running the package.
  
Now I am running this package.

See the output

See the zip files

Unzip the files

To unzip the file, we need to change the argument.

I want to extract files on UnZip folder.
Now I am executing the package.
See the output

 

14 comments:

  1. There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment?s pleasure, for the rest of their lives.


    Downlaod winzip full version serial key for 64 bit window 8

    ReplyDelete
  2. If you're in common must convert Workplace to PDF information, you may obtain and set up Workplace to PDF Converter as a more sensible choice. If you want to learn more about this topic please visit onlineconvertfree.com

    ReplyDelete
  3. Microsoft Business Intelligence: Zip And Unzip The Files Using 7-Zip In Ssis >>>>> Download Now

    >>>>> Download Full

    Microsoft Business Intelligence: Zip And Unzip The Files Using 7-Zip In Ssis >>>>> Download LINK

    >>>>> Download Now

    Microsoft Business Intelligence: Zip And Unzip The Files Using 7-Zip In Ssis >>>>> Download Full

    >>>>> Download LINK Vm

    ReplyDelete
  4. Well Posted.That is the fitting weblog for anyone who needs to find out about this topic. You understand a lot its virtually exhausting to argue with you (not that I really would want…HaHa). You undoubtedly put a brand new spin on a subject thats been written about for years. Nice stuff, just great!

    zip or unzip files and folders using command

    ReplyDelete
  5. Hello, this post gives very interesting information about off-season camping, really I like this information which is so much beneficial to us, keep sharing such kind of information, Thanks for sharing.
    7Zip Crack
    Autodesk Revit Crack
    TurboTax Crack
    Advanced Driver Updater Crack

    ReplyDelete
  6. I am happy after visited this site. I like all your posts. You were very nice Thanks for the information provided, they helped me a lot crackbins.com I hope you have more information Great blog.

    Serif Affinity Publisher Crack

    Inpixio Photo Studio Key

    FonePaw Video Converter Ultimate Crack

    TeraCopy Pro Crack

    ApowerUnlock Crack

    PDF-XChange Editor Plus Crack

    ReplyDelete
  7. I'm glad you enjoyed the article and found it informative.
    If you have any specific questions or topics you'd like me to cover in future articles, feel free to let me know.
    I'll do my best to continue providing valuable content. Thank you again for your feedback!
    thegamerpc.net I hope you have more information Great blog.

    Need For Speed Heat For PC

    ReplyDelete
  8. Hello, Your Site is very nice, and it's very helping us this post is unique and interesting, thank you for sharing this awesome information. and visit our blog site also... Keep it up
    Bridge Builder Racer
    Spiderman Shattered Dimensions
    Need for Speed Most Wanted

    ReplyDelete
  9. Hello, Your Site is very nice, and it's very helping us this post is unique and interesting, thank you for sharing this awesome information. and visit our blog site also... Keep it up
    Bridge Builder Racer
    Spiderman Shattered Dimensions
    Need for Speed Most Wanted

    ReplyDelete
  10. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    howcrack.org
    ApowerUnlock Crack

    ReplyDelete
  11. I am happy after visited this site. I like all your posts. You were very nice Thanks for the information provided, they helped me a lot crackbins.com I hope you have more information Great blog.

    Serif Affinity Publisher Crack

    Inpixio Photo Studio Key

    FonePaw Video Converter Ultimate Crack

    TeraCopy Pro Crack

    ApowerUnlock Crack

    PDF-XChange Editor Plus Crack

    ReplyDelete
  12. I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! 7zip

    ReplyDelete
  13. After reading a few of the blog pieces on your website, we sincerely love the way you written.
    crackbins.com Please visit my website and share your thoughts with us.

    ProgeCAD Crack

    Altair Flow Simulator Crack

    Serif Affinity Publisher Crack

    MAGIX Photostory Deluxe Crack

    ApowerUnlock Crack

    ReplyDelete
  14. After reading a few of the blog pieces on your website, we sincerely love the way you written.
    crackbins.com Please visit my website and share your thoughts with us.

    ApowerUnlock

    Folx Pro Mac Crack

    The Bat Professional Crack

    YouTube By Click Premium Crack

    PowerArchiver Crack

    ReplyDelete

If you have any doubt, please let me know.

Popular Posts