| 1. |
Solve : Batch to stop SQL2005 service MSSQL$CSS ( sqlservr.exe )? |
|
Answer» Looking for the INSTRUCTION for my batch file to easily stop and start the MSSQL$CSS SQL2005 server service. and then svchost will start it up again...Less arrogance in the future please. I'm trying to help.I wasn't being arrogant, I was merely stating a fact. Actually, if you keep taskkilling in a loop for a while, svchost will give up starting it. Unfortunately I believe it also disables the service, causing problems with SQL server. Also- what if SQL server is in the middle of a transaction when you taskkill it? databases could get CORRUPTED, file handles remain open, meaning starting it again later (assuming the fact that svchost hasn't already disabled the service because it kept "crashing"), would CAUSE SQL server to have problems gaining EXCLUSIVE access to it's own databases again. Killing processes is never a really clean solution, even if it would appear so- even when it works- terminating processes leaves a lot of cruft, from open file handles to open registry keys and even open devices (try killing a burning program when it's in the middle of a burn...)Quote from: BC_Programmer on October 29, 2008, 05:06:32 PM I wasn't being arrogant, I was merely stating a fact. I'd rather not, and I have 0 experience with MySQL, He asked how to end a process, I gave him an answer.he asked how to end a service. Although a service is a process, it's always best to get svchost to shut down the service cleanly. Your solution works fine- but it could have ramifications beyond the solution (I stress the could part since it's highly likely that SQL server is smart enough to notice that it's service is disabled and enable it again anyways).Quote from: BC_Programmer on October 29, 2008, 05:18:18 PM he asked how to end a service. Although a service is a process, it's always best to get svchost to shut down the service cleanly. Agreed, period.Thanks for info both of you! Dave |
|