AutostartServer Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

Syntax

object
.AutostartServer [=value]

Parts

  • object
    An 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.

Applies To:

Registry Object