SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


passing argument to command prompt through Execute Process Task


passing argument to command prompt through Execute Process Task

Author
Message
anthu_soft
anthu_soft
Grasshopper
Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)

Group: General Forum Members
Points: 22 Visits: 89
Hi,

I created the SSIS package. in that package i used Execute process Task transformation in that i give a path for acessing the .bat file. it works fine.

I have a doubt in passing argument values to batch file through Execute process task.

I want to explain my problem in detail:


I have a bath file it run the Command prompt.In my batch file contain the following code

cd\
cd C:\Program Files\Microsoft Office PerformancePoint Server\3.0\BizModeler
ppscmd stagingdb /operation SynchronizeData /server http://localhost:46787 /path InfoTechOutSourcing.InfoTech_Apps /collection models


In that code

InfoTechOtSourcing --------->model site Name
InfoTech_Apps--------------->Cube Name

i can have more than one cube in a model site and more then one model site in an application

so i want to pass the argument for those 2 values through Execute process task

i want my batch file look like this

cd\
cd C:\Program Files\Microsoft Office PerformancePoint Server\3.0\BizModeler
ppscmd stagingdb /operation SynchronizeData /server http://localhost:46787 /path @Arg1.@Arg2 /collection models

Arg1 is Model site Name
Arg2 is cubename

Ex:
@Arg1=InfoTechOtSourcing
@Arg2=InfoTech_Apps

is that possible?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search