ShutDown Method

SQLServer Object

Description

Stops a running SQL Server.

Visual Basic

SQLServer.ShutDown ( [[Wait :=] bWait] )

C++

HRESULT pSQLServer->ShutDown ( BOOL bWait = TRUE );

Elements

Element Type Description

bWait Boolean If True, SQL Server waits for current operations to complete before stopping. If False, SQL Server stops immediately.

Reference

SHUTDOWN