Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting & Stopping a service as an automated task?

Status
Not open for further replies.

jdunderhill

Technical User
Joined
Nov 25, 2002
Messages
223
Location
GB
Hi

We have a sql service that we would like to start at a 08:00 and end at 17:30 at night via some sort of script or task

We would like to automate the process if possible, I have googled and can't seem to find anything useful

The reason we would like to automate the service is that we currently have to start stop it daily so that a file can get backed up successfully at night using veritas

I would appreciate any help or comments to help us automate this tedious task!

Kind Regards

Jamie
 
look up 'net start' and 'net stop'

put the required commandline into a batchfile then schedule to start at the required times

Master of Disaster.....Recovery
 
Simply enough create (2) scheduled tasks
1. net start mssqlserver
To run at 8:00am
2. net stop mssqlserver
To run at 17:30pm

 
Thanks for the replies I will try the methods to see if I can get it to work

Regards

Jamie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top