|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, July 27, 2010 9:23 AM
Points: 30,
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.
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Today @ 3:18 AM
Points: 780,
Visits: 464
|
|
| Try using the Execute Process Task component instead of the ActiveX script task.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, July 27, 2010 9:23 AM
Points: 30,
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
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, January 28, 2011 1:55 PM
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.
:)
|
|
|
|