Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Is it really needed to STOP SQL Service before reboot the ..

 
   Database Forums (Home) -> Server RSS
Next:  Restore databases from 2005 SP2 -> RTM  
Author Message
Carlos Felipe França da F

External


Since: Oct 17, 2006
Posts: 45



(Msg. 1) Posted: Tue Jul 22, 2008 5:58 pm
Post subject: Is it really needed to STOP SQL Service before reboot the server?
Archived from groups: microsoft>public>sqlserver>server (more info?)

Is it really needed to STOP SQL Service before reboot the server?

Based on the the value in the registry key
HKLM\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout, the server
can kill the process if it takes too long to stop. I think it's not a good,
right?

Thx,

Felipe

 >> Stay informed about: Is it really needed to STOP SQL Service before reboot the .. 
Back to top
Login to vote
Linchi Shea

External


Since: Mar 03, 2006
Posts: 234



(Msg. 2) Posted: Tue Jul 22, 2008 5:58 pm
Post subject: RE: Is it really needed to STOP SQL Service before reboot the server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

No, you don't need to stop SQL service before rebooting a server. SQL Server
is built to handle a server crash. A reboot is actually much cleaner than a
real crash.

But i'm still seeing people religiously rebooting their Windows servers once
every week to starve away any potential instability. If that makes people
feel better, I guess that's what they need to do.

Linchi

"Carlos Felipe França da Fonseca" wrote:

> Is it really needed to STOP SQL Service before reboot the server?
>
> Based on the the value in the registry key
> HKLM\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout, the server
> can kill the process if it takes too long to stop. I think it's not a good,
> right?
>
> Thx,
>
> Felipe
>
>
>

 >> Stay informed about: Is it really needed to STOP SQL Service before reboot the .. 
Back to top
Login to vote
David Hay

External


Since: May 12, 2008
Posts: 27



(Msg. 3) Posted: Wed Jul 23, 2008 5:13 am
Post subject: Re: Is it really needed to STOP SQL Service before reboot the server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My 2 cents. I ALWAYS stop SQL myself prior to a reboot after having a
DB come up suspect on me once.

Look for any running jobs. If they are critical, wait till it is
finished, otherwise kill all active jobs in SQL Agent before stopping
SQL Agent.
The I stop the SQL Server Servce. This will stop any new transactions
from processing, and allow any that are in flux to complete and flush
to disk. This will save time on a restart as it won't need to replay
the transaction log when it brings the databases up.

Good luck!

David Hay
 >> Stay informed about: Is it really needed to STOP SQL Service before reboot the .. 
Back to top
Login to vote
Uri Dimant

External


Since: Aug 24, 2003
Posts: 739



(Msg. 4) Posted: Wed Jul 23, 2008 8:27 am
Post subject: Re: Is it really needed to STOP SQL Service before reboot the server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Linchi
I have seen many times when people rebooted a server without stopping SQL
Server and the databases come up in suspected mode.
I used to stop SQL Server services before rebooting the server







"Linchi Shea" wrote in message

> No, you don't need to stop SQL service before rebooting a server. SQL
> Server
> is built to handle a server crash. A reboot is actually much cleaner than
> a
> real crash.
>
> But i'm still seeing people religiously rebooting their Windows servers
> once
> every week to starve away any potential instability. If that makes people
> feel better, I guess that's what they need to do.
>
> Linchi
>
> "Carlos Felipe Fran?a da Fonseca" wrote:
>
>> Is it really needed to STOP SQL Service before reboot the server?
>>
>> Based on the the value in the registry key
>> HKLM\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout, the
>> server
>> can kill the process if it takes too long to stop. I think it's not a
>> good,
>> right?
>>
>> Thx,
>>
>> Felipe
>>
>>
>>
 >> Stay informed about: Is it really needed to STOP SQL Service before reboot the .. 
Back to top
Login to vote
vinu

External


Since: Jun 16, 2008
Posts: 27



(Msg. 5) Posted: Wed Jul 23, 2008 11:35 am
Post subject: Re: Is it really needed to STOP SQL Service before reboot the server? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Uri


What I would suggest before rebooting the server or sql server service is,
DBA must ensure that ; no user/application connection to sql server is
present. A nice clean shutdown (thats what Microsoft call it)
My procedure is
1. stop sql agent service
2. disconnect all users/application connection
3. stop the sql server service

vinu




"Uri Dimant" wrote in message

> Linchi
> I have seen many times when people rebooted a server without stopping SQL
> Server and the databases come up in suspected mode.
> I used to stop SQL Server services before rebooting the server
>
>
>
>
>
>
>
> "Linchi Shea" wrote in message
>
>> No, you don't need to stop SQL service before rebooting a server. SQL
>> Server
>> is built to handle a server crash. A reboot is actually much cleaner than
>> a
>> real crash.
>>
>> But i'm still seeing people religiously rebooting their Windows servers
>> once
>> every week to starve away any potential instability. If that makes people
>> feel better, I guess that's what they need to do.
>>
>> Linchi
>>
>> "Carlos Felipe Fran?a da Fonseca" wrote:
>>
>>> Is it really needed to STOP SQL Service before reboot the server?
>>>
>>> Based on the the value in the registry key
>>> HKLM\SYSTEM\CurrentControlSet\Control\WaitToKillServiceTimeout, the
>>> server
>>> can kill the process if it takes too long to stop. I think it's not a
>>> good,
>>> right?
>>>
>>> Thx,
>>>
>>> Felipe
>>>
>>>
>>>
>
>
 >> Stay informed about: Is it really needed to STOP SQL Service before reboot the .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Database Mail - Is SMTP service needed? - Do I need to install SMTP service to use SQL Server Database Mail? Thanks, Felipe

SQL Server 2000 freeze had to reboot - Hello, We have serious issues with our production database servers once in a while we have server stops responding only option is to reboot the box to bring server online. This is going on consistently and actively working with MS support unfortunatel...

I want to remove Service "MSSQLServerADHelper" from servic.. - Hi All, I have done as mentioned by Microsoft in following URL http://support.microsoft.com/kb/308853 Though, Service "MSSQLServerADHelper" is not getting off from Service list. Can anyone help me how to remove that name from Service list. ...

why the MS DTC always stop services automatically ? - why the MS DTC always stop services automatically ? hi , two sql server MS DTC services stop services automatically : one server : After my anti-virus software killed a vbs virus , MS DTC services stop services automatically in a minute, then..

how do i stop a maintenance plan? - I have a maintenance plan that runs every night. Sometimes it takes too long to run and it affects production for the following morning. I can see and kill the process it is currently running but then the next task starts and i have to kill that too....
   Database Forums (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]