• Mordred (8/14/2012)


    Hi all,

    I currently am downloading zipped csv files from our source. As part of the process I am to have my package unzip the files but I'm unsure about the logic behind adding arguments to this process. For example, this link's second post describes creating variables to use as arguments but I'm not sure how to apply this logic to my own requirements. I have a variable called fileName which is used to change the names of all the zip files and its type is an Int32 that I parse into a string in my script task. I also have a variable "ExtractionFolder" (String) that holds the UNC path to where I want the unzipped files to be. I can give more information if needed about my variables but my only hold up now is the logic behind the arguments. I've been cruising msdn site to gain knowledge about this but I haven't found anything that describes how to set up the argument nor am I finding much information about arguments in general. I'm confused about this so if anyone can give me an explanation regarding arguments I would really appreciate it.

    If you're not using SQL Server 2012 yet you might give TaskUnZip[/url] a try. I have not had a need to do this so I have not tried it myself.

    If that's not an option, try this tutorial on calling 7-zip from the Execute Command task by Devendra Vagal.

    I used the Execute Command task with gpg a while back to encrypt files for transmission. It took a little trial and error to figure things out but it all made sense in the end.

    Be sure to let us know how you solve your problem so others can benefit!

    [font="Tahoma"]Bryant E. Byrd, BSSE MCDBA MCAD[/font]
    Business Intelligence Administrator
    MSBI Administration Blog