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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to set a program to stop/start sql services

Status
Not open for further replies.

jdavis37

MIS
Jul 9, 2002
233
US
I'm using a Web Inspector program which needs SQL to run. I'm using SQL ver 6.5. I need to start running a backup on this server. I was wondering if there's a way to run a batch file or something to stop/start the services at a certain time.

I'm in a novell environment.
 
you can run the following 2 commands to start and stop. These can be ran from the command propmpt or a batch file.

net stop mssqlserver

net start mssqlserver

"Shoot Me! Shoot Me NOW!!!"
- Daffy Duck
 
This will stop all sql services..Can I use the AT command to do this? Thanks
 
Thanks for the information. Although, I setup a *.bat file and setup it up to run everyday with the AT command wizard. The services didn't stop completely. The screen was open to a dos prompt with a y/n question asking if I'm sure I want to stop this service. Can you tell me what parameter I should include in the *.bat file?
 
net stop mssqlserver /Y

do not need on for the start net of course.

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top