Solved

how to sheduled service restart

Posted on 2008-06-18
2
270 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql server query 18 42
xml files 7 29
too many installs coming along with SQL 2016? 1 17
Current Month Filter in Visual Studio 10 23
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I have a large data set and a SSIS package. How can I load this file in multi threading?
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

830 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