![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In my DTS, I got an Activex step in which I am preparing a bat file (command file). I know how to start it by creating a separate "Execute Process Task" step, but then my bat filename must remain identical each time, while I'd prefer to make it vary ... To do so, either I can code inside my Activex the launching of the bat file, or I may pass the bat filename as parameter to the "Execute Process Task" step : The thing is I have no idea at all on how to do that. Please Help !!! |
#3
| |||
| |||
|
#4
| |||
| |||
|
| Allan, Thank you very much ... this is perfect ! Now I meet another problem : I'd like to find a way to send a few parameters to my DTS from an ASP page. I searched the web and couldnt find clear help on the subject ... I could either call directly the DTS, or a stored procedure which should then be able to call the DTS with parameters or to set global variables. I found the following kind of stored proc somewhere ... but couldnt make it work (the @sql value was different). CREATE procedure my_sp @User varchar(50), @report int as DECLARE @sql varchar(1000) DECLARE @myDTS varchar(100) SELECT @requestID = 1 SELECT @myDTS = "My appli : Treat User Requests" select @sql="xp_cmdshell 'dtsrun /N" + @myDTS + " /E /AReq="+ convert(char(5),@requestID) + "'" exec(@sql) GO I am sure many of you have needed this ! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |