Click here to Skip to main content
15,894,720 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRequest.form Pin
seemamltn11-Jun-07 12:58
seemamltn11-Jun-07 12:58 
AnswerRe: Request.form Pin
Guffa11-Jun-07 19:13
Guffa11-Jun-07 19:13 
QuestionListbox multi-select Pin
certuser7611-Jun-07 12:47
certuser7611-Jun-07 12:47 
AnswerRe: Listbox multi-select Pin
Venkatesh Mookkan11-Jun-07 20:09
Venkatesh Mookkan11-Jun-07 20:09 
QuestionPass Data Pin
seemamltn11-Jun-07 12:02
seemamltn11-Jun-07 12:02 
AnswerRe: Pass Data Pin
Sathesh Sakthivel11-Jun-07 15:33
Sathesh Sakthivel11-Jun-07 15:33 
QuestionExecute SSIS package Pin
alexfromto11-Jun-07 11:08
alexfromto11-Jun-07 11:08 
AnswerRe: Execute SSIS package Pin
Sathesh Sakthivel11-Jun-07 15:39
Sathesh Sakthivel11-Jun-07 15:39 
Hope this will Help you.

DECLARE @cmd VARCHAR(255)

DECLARE @Wait INT

DECLARE @result INT, @OLEResult INT

DECLARE @ShellID INT



SET @Wait = 0



SET @cmd = 'DTEXEC /sq "TestSSPSPackageName" /ser <server name=""> /Set \Package.Variables[User::varTargetName].Properties[Value];"c:\dtsxTest\Test2.txt"'



-- create instance of OLE object

EXECUTE @OLEResult = sp_OACreate 'WScript.Shell', @ShellID OUT

IF @OLEResult <> 0 SELECT @result = @OLEResult

IF @OLEResult <> 0 RAISERROR ('CreateObject %0X', 14, 1, @OLEResult)



-- run package

EXECUTE @OLEResult = sp_OAMethod @ShellID, 'Run', NULL, @cmd, 0, @Wait

IF @OLEResult <> 0 SELECT @result = @OLEResult

IF @OLEResult <> 0 RAISERROR ('Run %0X', 14, 1, @OLEResult)

If @OLEResult <> 0 EXEC sp_OAGetErrorInfo @ShellID, @OLEResult



-- drop object

EXECUTE @OLEResult = sp_OADestroy @ShellID



-- I think this will run an an asynchronous process.



Regards,

Satips.Rose | [Rose]

GeneralRe: Execute SSIS package Pin
alexfromto12-Jun-07 3:13
alexfromto12-Jun-07 3:13 
QuestionRead/Writing removable HDD? [modified] Pin
BlueChippy11-Jun-07 9:58
BlueChippy11-Jun-07 9:58 
Questionserver.tranfer Pin
seemamltn11-Jun-07 8:37
seemamltn11-Jun-07 8:37 
AnswerRe: server.tranfer Pin
Tom John11-Jun-07 8:40
Tom John11-Jun-07 8:40 
AnswerRe: server.tranfer Pin
Sylvester george11-Jun-07 21:11
Sylvester george11-Jun-07 21:11 
Questionasp:ChangePassword Failure Text Pin
Brendan Vogt11-Jun-07 6:07
Brendan Vogt11-Jun-07 6:07 
AnswerRe: asp:ChangePassword Failure Text Pin
Not Active11-Jun-07 6:12
mentorNot Active11-Jun-07 6:12 
Questionasp:LoginName Issue Pin
Brendan Vogt11-Jun-07 5:53
Brendan Vogt11-Jun-07 5:53 
Questionasp:LoginStatus Not Displaying Sign Out Page Pin
Brendan Vogt11-Jun-07 5:49
Brendan Vogt11-Jun-07 5:49 
Questionasp:Login Failure Text Colour Not Red Pin
Brendan Vogt11-Jun-07 5:41
Brendan Vogt11-Jun-07 5:41 
AnswerRe: asp:Login Failure Text Colour Not Red Pin
wEb GuRu...11-Jun-07 6:12
wEb GuRu...11-Jun-07 6:12 
QuestionHow to locate controls on a web form Pin
lune1211-Jun-07 4:22
lune1211-Jun-07 4:22 
AnswerRe: How to locate controls on a web form Pin
Tarik Guney11-Jun-07 4:47
Tarik Guney11-Jun-07 4:47 
GeneralRe: How to locate controls on a web form Pin
lune1211-Jun-07 5:05
lune1211-Jun-07 5:05 
AnswerRe: How to locate controls on a web form Pin
szukuro11-Jun-07 5:20
szukuro11-Jun-07 5:20 
QuestionHow to use the function "CallByName" in asp? Pin
Billypon11-Jun-07 4:08
Billypon11-Jun-07 4:08 
AnswerRe: How to use the function "CallByName" in asp? Pin
wEb GuRu...11-Jun-07 4:15
wEb GuRu...11-Jun-07 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.