Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Execute Process Task Arguments Expand / Collapse
Author
Message
Posted Tuesday, August 14, 2012 10:20 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, September 8, 2013 9:25 AM
Points: 96, Visits: 495
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.


Regards:
Mordred
Keep on Coding in the Free World
Post #1344853
Posted Monday, August 20, 2012 8:20 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, September 4, 2014 9:46 AM
Points: 295, Visits: 280
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 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!


Bryant E. Byrd, BSSE MCDBA MCAD
Business Intelligence Administrator
MSBI Administration Blog
Post #1347537
Posted Monday, August 20, 2012 10:10 PM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, September 8, 2013 9:25 AM
Points: 96, Visits: 495
Thanks for the response! I have an unzip executable already in place but I am confused about the arguments I need to set in order to unzip the variable defined file as well as the the destination where the file should be unzipped to. There are examples on the interwebs but I find them convoluted as they are not very descriptive regarding how to set the paths in the arguments section. I'm still trying to figure this out and yes once I do I will post the solution.

Regards:
Mordred
Keep on Coding in the Free World
Post #1347555
Posted Tuesday, August 21, 2012 3:35 PM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, September 8, 2013 9:25 AM
Points: 96, Visits: 495
After dragging my knuckles through the dirt I, with the help of a co-worker, have figured this out. Instead of placing the path to be unzipped in the Arguments section, I passed the path variable as an expression and left the Arguments empty. Now every zipped file passed into this process is unzipped successfully. Hopefully this makes sense.

Regards:
Mordred
Keep on Coding in the Free World
Post #1348120
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse