gpt4 book ai didi

sql - 停止 SQL Server 运行直到需要为止

转载 作者:行者123 更新时间:2023-12-02 11:58:04 24 4
gpt4 key购买 nike

不是偏离主题的。 The link to on-topic说:...if your question generally covers...software tools commonly used by programmers...then you’re in the right place to ask your question!

<小时/>

我的 PC 上安装了 SQL Server 2012,但通常不需要它。它仅用于调试目的。

我发现它占用了相当多的内存,所以我想阻止它启动,直到我需要它,启动它,然后在不需要时停止它。

我该怎么做? (我也安装了 SSMS,所以如果可以的话我可以使用它。)

最佳答案

要启动、停止、暂停、恢复或重新启动 SQL Server 数据库引擎实例:

  1. On the Start menu, point to All Programs, point to Microsoft SQL Server 2012 , point to Configuration Tools, and then click SQL ServerConfiguration Manager. If the User Account Control dialog box appears,click Yes.
  2. In SQL Server Configuration Manager, in the left pane, click SQL Server Services.
  3. In the results pane, right-click SQL Server (MSSQLServer) or a named instance, and then click Start, Stop, Pause, Resume, or Restart.
  4. Click OK to close SQL Server Configuration Manager.

来自:Microsoft - Start,Stop,etc. SQL Server

您还可以在 SSMS 中执行此操作:

In Object Explorer, connect to the instance of the Database Engine,right-click the instance of the Database Engine you want to start, andthen click Start, Stop, Pause, Resume, or Restart.

编辑:正如 Lamak 提到的,在 SQL Server 配置管理器中,您可以将所有服务的 StartMode 更改为“手动”,这样它们就不会在启动时启动。

关于sql - 停止 SQL Server 运行直到需要为止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17284228/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com