Solved

how to sheduled service restart

Posted on 2008-06-18
2
267 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
Comment Utility
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
Comment Utility
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now