AutostartServer Property (SQL-DMO)

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

Applies To

Registry Object

Syntax

object.AutostartServer [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

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.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAutostartServer(LPBOOL pRetVal);

HRESULT SetAutostartServer(BOOL NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.