11

Situation: developer workstations that typically just use the client tools to connect to other non-local sql servers. However, there are rare times that having the full version of sql server to do local development will be beneficial. In an effort to not waste system resources running sql server all the time I would like to know the best way to "turn it off" while still allowing usage of client tools (management studio, etc).

migrated from stackoverflow.com Feb 1 '12 at 14:07

This question came from our site for professional and enthusiast programmers.

9

You may need to access SQL Server Configuration from the Start menu by selecting Microsoft SQL Server and then Configuration Tools, and then follow Thomas' path.

You can also configure those services so that they don't start automatically. I have mine set on "Manual", so if I want to use the SQL Server server, I just start the service. Ditto for SSIS, SSAS, SSRS, etc.

Since I have two versions of SQL Server running on my development machine, I don't want all of this stuff eating up my resources.

7

SQL Server Configuration Manager -> SQL Server Services -> Right Click -> Stop.

7

I'm a fan of PowerShell for this. Depending on the details of what you want to accomplish:

Stop a particular instance:

Stop-Service 'MSSQL$InstanceName' -Force

and

Start-Service 'MSSQL$InstanceName'

or to stop all SQL related services.

Stop-Service *SQL* -Force

or create a double-clickable script to toggle the state: http://orionseven.com/blog/2010/10/18/starting-and-stopping-sql-server-with-windows-powershell-2-0/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.