Click here to Skip to main content
15,915,703 members
Home / Discussions / Database
   

Database

 
QuestionINT and VARCHAR Pin
N a v a n e e t h12-Jun-07 1:34
N a v a n e e t h12-Jun-07 1:34 
AnswerRe: INT and VARCHAR Pin
Sathesh Sakthivel12-Jun-07 2:07
Sathesh Sakthivel12-Jun-07 2:07 
QuestionHow to Customized SQL Report Viewer Control Pin
Ali Raza Shah11-Jun-07 18:38
Ali Raza Shah11-Jun-07 18:38 
QuestionPervasive SQL 8.0 Pin
Soleil couchant11-Jun-07 17:00
Soleil couchant11-Jun-07 17:00 
AnswerRe: Pervasive SQL 8.0 Pin
Sathesh Sakthivel11-Jun-07 18:51
Sathesh Sakthivel11-Jun-07 18:51 
GeneralRe: Pervasive SQL 8.0 Pin
Soleil couchant11-Jun-07 19:14
Soleil couchant11-Jun-07 19:14 
QuestionExecute SSIS package Pin
alexfromto11-Jun-07 11:02
alexfromto11-Jun-07 11:02 
AnswerRe: Execute SSIS package Pin
Sathesh Sakthivel11-Jun-07 16:11
Sathesh Sakthivel11-Jun-07 16:11 
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 /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]

QuestionTransforming and verifying dates Pin
~~~Johnny~~~11-Jun-07 9:09
~~~Johnny~~~11-Jun-07 9:09 
AnswerRe: Transforming and verifying dates Pin
~~~Johnny~~~11-Jun-07 9:39
~~~Johnny~~~11-Jun-07 9:39 
Questionuniqueidentifier data type Pin
Brendan Vogt11-Jun-07 8:52
Brendan Vogt11-Jun-07 8:52 
AnswerRe: uniqueidentifier data type Pin
Michael Potter11-Jun-07 8:59
Michael Potter11-Jun-07 8:59 
AnswerRe: uniqueidentifier data type Pin
Jhonny Alejandro Galeano Calle13-Jun-11 5:58
Jhonny Alejandro Galeano Calle13-Jun-11 5:58 
QuestionSystem.Data.SQlClient.SQlException [modified] Pin
Vimalsoft(Pty) Ltd11-Jun-07 4:26
professionalVimalsoft(Pty) Ltd11-Jun-07 4:26 
AnswerRe: System.Data.SQlClient.SQlException Pin
originSH11-Jun-07 4:53
originSH11-Jun-07 4:53 
GeneralRe: System.Data.SQlClient.SQlException Pin
Vimalsoft(Pty) Ltd11-Jun-07 20:29
professionalVimalsoft(Pty) Ltd11-Jun-07 20:29 
QuestionOracle DBF export Pin
Vertyg011-Jun-07 2:40
Vertyg011-Jun-07 2:40 
AnswerRe: Oracle DBF export Pin
andyharman11-Jun-07 6:24
professionalandyharman11-Jun-07 6:24 
GeneralRe: Oracle DBF export Pin
Vertyg011-Jun-07 7:21
Vertyg011-Jun-07 7:21 
GeneralRe: Oracle DBF export Pin
andyharman11-Jun-07 23:06
professionalandyharman11-Jun-07 23:06 
GeneralRe: Oracle DBF export Pin
RussellT5-Jun-09 9:17
professionalRussellT5-Jun-09 9:17 
QuestionAny work arounds for getting rid of Process Blocking in SQL2000 Pin
Jayaraman B10-Jun-07 23:37
Jayaraman B10-Jun-07 23:37 
AnswerRe: Any work arounds for getting rid of Process Blocking in SQL2000 Pin
andyharman10-Jun-07 23:55
professionalandyharman10-Jun-07 23:55 
Question[Message Deleted] Pin
Brendan Vogt10-Jun-07 22:31
Brendan Vogt10-Jun-07 22:31 
AnswerRe: SELECT Not Working Pin
SimulationofSai10-Jun-07 22:49
SimulationofSai10-Jun-07 22:49 

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.