Solved

how to sheduled service restart

Posted on 2008-06-18
2
269 Views
Last Modified: 2010-03-05
what is the best way to have sheduled MS SQL service restart?
I am having a problem from time to to time to run automated DB restore due to DB being in use and like to shedule SQL server service restart before the restore job to make sure that it will run.
0
Comment
Question by:leop1212
2 Comments
 
LVL 17

Accepted Solution

by:
Andres Perales earned 400 total points
ID: 21817555
http://technet2.microsoft.com/windowsserver/en/library/03928250-2796-4253-8fb1-b25329ddf35f1033.mspx?mfr=true

use above link to write a batch file to restart a particular service.
then use the scheduler in control panel to run that batch file at your specified schedule.

have fun
0
 
LVL 2

Assisted Solution

by:noc-mitts
noc-mitts earned 100 total points
ID: 21818419
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question