Shutdown Method (SQL-DMO)

The Shutdown method stops a running Microsoft® SQL Server™ service.

Applies To

SQLServer Object

Syntax

object.Shutdown( [ Wait ] )

Part Description
object Expression that evaluates to an object in the Applies To list.
Wait Optional. True or False as described in Remarks.

Remarks

When Wait is True (default), SQL Server performs an orderly shutdown: disabling logins, waiting for transaction or stored procedure completion, and checkpointing open databases.

When Wait is False, the SQL Server service performs an immediate shutdown.

Prototype (C/C++)

HRESULT Shutdown(BOOL bWait = TRUE);

  


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