Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.74 KB

File metadata and controls

61 lines (46 loc) · 1.74 KB
title StartMode Property (SqlService)
ms.custom seo-lt-2019
ms.date 03/04/2017
ms.prod sql
ms.prod_service database-engine
ms.reviewer
ms.technology wmi
ms.topic reference
apiname
StartMode Property (SqlService Class)
apilocation
sqlmgmproviderxpsp2up.mof
apitype MOFDef
helpviewer_keywords
StartMode property
ms.assetid c0c2c7f8-d4ae-44f2-ad8e-aecfcb7c2878
author CarlRabeler
ms.author carlrab

StartMode Property (SqlService Class)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md] Gets the start mode of the service.

Syntax

  
object.StartMode [= value]  

Parts

object
A SqlService Class object that represents the service.

Property Value/Return Value

A uint32 value that specifies the mode of the service.

Values can be one of the following.

Boot
Value = 0. Service started by the operating system loader. This option is valid only for driver services.

System
Value = 1. Service started by the IoInitSystem method. This option is valid only for driver services.

Automatic
Value = 2. Service to be started automatically by the service control manager during system startup.

Manual
Value = 3. Service to be started by the Computer Manager when a process calls the StartService method.

Disabled
Value = 4. Service cannot be started.

Remarks

See Also

Starting and Stopping Services