Skip to content

Commit 8629aff

Browse files
Merge pull request #26127 from padmajayaraman/172802_padmajayaraman_DisabledSQLServerService
172802 Added a new section about enabling disabled SQL Server service instances
2 parents 6d2939e + 5f91752 commit 8629aff

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

docs/database-engine/configure-windows/start-stop-pause-resume-restart-sql-server-services.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Start, stop, pause, resume, and restart SQL Server services
33
description: Find out how to start, stop, pause, resume, or restart various SQL Server services. See how to use Transact-SQL, PowerShell, and other tools for these actions.
44
author: rwestMSFT
55
ms.author: randolphwest
6-
ms.date: 12/16/2022
6+
ms.date: 02/21/2023
77
ms.service: sql
88
ms.subservice: configuration
99
ms.topic: conceptual
@@ -96,7 +96,7 @@ The SQL Server Configuration Manager is a snap-in for the Microsoft Management C
9696

9797
### <a id="configmande"></a> Start, stop, pause, resume, or restart an instance of the SQL Server Database Engine
9898

99-
1. Start SQL Server Configuration Manager, using the instructions above.
99+
1. Start SQL Server Configuration Manager, using the instructions in the previous section.
100100

101101
1. If the **User Account Control** dialog box appears, select **Yes**.
102102

@@ -114,7 +114,7 @@ The SQL Server Configuration Manager is a snap-in for the Microsoft Management C
114114
115115
### Start, stop, pause, resume, or restart the SQL Server Browser or an instance of the SQL Server Agent
116116

117-
1. Start SQL Server Configuration Manager, using the instructions above.
117+
1. Start SQL Server Configuration Manager, using the instructions in the previous section.
118118

119119
1. If the **User Account Control** dialog box appears, select **Yes**.
120120

@@ -125,7 +125,7 @@ The SQL Server Configuration Manager is a snap-in for the Microsoft Management C
125125
1. Select **OK** to close the SQL Server Configuration Manager.
126126

127127
> [!NOTE]
128-
> SQL Server Agent cannot be paused.
128+
> SQL Server Agent can't be paused.
129129
130130
## SQL Server Management Studio
131131

@@ -242,11 +242,11 @@ The [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] services can be st
242242

243243
### <a id="pauseStop"></a> Pause or stop services from the command prompt window
244244

245-
- To pause or stop services, modify the commands in the following ways.
245+
To pause or stop services, modify the commands in the following ways.
246246

247247
- To pause a service, replace **net start** with **net pause**.
248248

249-
- To stop a service, replace **net start** with use **net stop**.
249+
- To stop a service, replace **net start** with **net stop**.
250250

251251
## <a id="TsqlProcedure"></a> Transact-SQL
252252

@@ -339,6 +339,20 @@ For more information about the **SHUTDOWN** statement, see [SHUTDOWN (Transact-S
339339
$DfltInstance
340340
```
341341

342+
## Check and enable disabled instances
343+
344+
To determine whether a SQL Server service instance is disabled, follow these steps:
345+
346+
1. Identify the service that you're trying to check by using the information in the [Identify the Service](start-stop-pause-resume-restart-sql-server-services.md) section.
347+
1. In [SQL Server Configuration Manager](../../relational-databases/sql-server-configuration-manager.md), select **SQL Server Services** and then locate the service you're interested in.
348+
1. If the value of the **Start Mode** column is set to **Other (Boot, System, Disabled or Unknown)**, it typically means the corresponding service is disabled. To enable the service, follow these steps:
349+
350+
a. In the Name column, right-click on the corresponding service and then switch to **Service** tab in the ***\<Service name\>* Properties** window.
351+
352+
b. Review the value in the **Start Mode** column and verify that it's set to **Disabled**.
353+
354+
c. Change the value to either **Manual** or **Automatic** per your requirements. For more information, see [Configure Server Startup Options (SQL Server Configuration Manager)](scm-services-configure-server-startup-options.md).
355+
342356
## <a id="ServiceController"></a> Use the ServiceController class
343357
344358
You can use the `ServiceController` class to programmatically control the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] service, or any other Windows service. For an example using C#, see [ServiceController Class](/dotnet/api/system.serviceprocess.servicecontroller).

0 commit comments

Comments
 (0)