AutostartServer Property

SQL-DMO

SQL-DMO

AutostartServer Property

The AutostartServer property exposes Microsoft® SQL Server™ startup behavior upon operating system start.

Applies To
Registry Object
Syntax

object.AutostartServer [= value]

Parts

object

Expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAutostartServer(LPBOOL pRetVal);

HRESULT SetAutostartServer(BOOL NewValue);

Remarks

If TRUE, an attempt is made to start SQL Server when the operating system starts.

If FALSE, no attempt is made to start SQL Server. SQL Server can be started manually.

Note  AutostartServer is only valid on the Microsoft® Windows NT® 4.0 or Microsoft® Windows 2000 operating system.