This is not off-topic. The link to on-topic says: ...if your question generally covers...software tools commonly used by programmers...then you’re in the right place to ask your question!
I have SQL Server 2012 installed on my PC, and usually don't need it. It's only for debugging purposes.
I've seen it takes up quite some RAM so I'd like to prevent it from starting until I need it, start it, and then stop it when not needed again.
How do I do that? (I have SSMS installed as well so I can use that if that's the way to do it.)
Expand SQL Server Agent, expand Jobs, right-click the job you want to stop, and then click Stop Job. If you want to stop multiple jobs, right-click Job Activity Monitor, and then click View Job Activity. In the Job Activity Monitor, select the jobs you want to stop, right-click your selection, and then click Stop Jobs.
The Net Stop Command But to stop SQL Server from outside the Windows GUI, you can use Windows 2000 or Windows NT 4.0's built-in Net command. From a command prompt, type net stop mssqlserver. If you're using a named instance, type net stop mssql$instancename.
To start, stop, pause, resume, or restart the an instance of the SQL Server Database Engine:
- On the Start menu, point to All Programs, point to Microsoft SQL Server 2012 , point to Configuration Tools, and then click SQL Server Configuration Manager. If the User Account Control dialog box appears, click Yes.
- In SQL Server Configuration Manager, in the left pane, click SQL Server Services.
- In the results pane, right-click SQL Server (MSSQLServer) or a named instance, and then click Start, Stop, Pause, Resume, or Restart.
- Click OK to close SQL Server Configuration Manager.
From: Microsoft - Start,Stop,etc. SQL Server
You can also do this from within SSMS:
In Object Explorer, connect to the instance of the Database Engine, right-click the instance of the Database Engine you want to start, and then click Start, Stop, Pause, Resume, or Restart.
Edit: As Lamak mentioned, within the SQL Server Configuration Manager you can change all the services StartMode to "Manual" so they do not start on boot.
The best way is to setup se SQL service to manual, from run type “services.msc” to access windows services and change startup type to “manual” you can change all services started by SQL*.
Doing so your computer starts faster because will not start SQL Server on boot.
If you need just go again to services.msc and start the service, there's no need to change again the type they just stay "manual"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With