Reference from http://businessintelligencechronicles.blogspot.com/2009/02/using-ssis-script-task-to-executing.html
Using script task to connect remote server to stop & start mssqlserverOLAPService
Basicly we know command to stop and start olap service via command prompt.
Start -->Run command
Net stop mssqlserverOLAPService <---- Command to stop
Net start mssqlserverOLAPService <---- Command to start
In the example he remote to run Calc.exe via Command variable
In my case I create two string Command (Command1 , Command2)
Set Command1 = Net stop mssqlserverOLAPService
Set Command2 = Net start mssqlserverOLAPService
And then seperate commands into 2 script tasks
1 = Script for stop
2 = Script for start
**Remark If you SSIS version is 2008 You no need to change anythings except your command.
If you using SSIS 2005 you need to change a little bit command
from Dts.TaskResult = ScriptResults.Success to be Dts.TaskResult = Dts.result.Success
That's work perfectly!!!
Thanks Christo Olivier