Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Calling Windows service from ACTIVEX script in DTS Package


Calling Windows service from ACTIVEX script in DTS Package

Author
Message
balaji_rcs
balaji_rcs
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 93
hi,

I've created a windows service and i want to execute the windows service from DTS package in sql server. Is it possible to execute the service from DTS package server. Can you please guide me to resolve this.
Gogula G. Aryalingam
Gogula G. Aryalingam
Right there with Babe
Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)Right there with Babe (780 reputation)

Group: General Forum Members
Points: 780 Visits: 510
Try using the Execute Process Task component instead of the ActiveX script task.
balaji_rcs
balaji_rcs
SSC Rookie
SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)SSC Rookie (38 reputation)

Group: General Forum Members
Points: 38 Visits: 93
hi,

Thanks for reply in. I used this task, but i dont know abt how to call the windows service , i refered the exe file of the windows service in the task, but it throws the error and it says that "It cannot start from the tool, call by using administrative tools".
Please help me to call the windows service from DTS package and once the service is completed, i want to move to the next step
dharti
dharti
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 47
HI,
Use Execute SQL task with master Database connection..

use command

xp_cmdshell 'NET START TELNET'
(Service name you have to find from
the control pannel. if you need to run your own service make sure
you have registered that service.)

xp_cmdshell 'NET STOP TELNET'

and this way u can even run the package as job it will work succesfully.

Smile
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