shutdown

Shuts down the SAP ASE server from which the command is issued, its local Backup Server, or a remote Backup Server.

Syntax

shutdown [srvname] [with {wait [="hh:mm:ss"] | nowait}]]
Syntax for clusters:
shutdown {cluster | [instance_name]} [with {wait | nowait}]

Parameters

Examples

Usage

In a clustered environment, the shutdown command with no options is invalid in a clustered environment, as for example:
shutdown
go

See also sp_addserver, sp_helpserver in Reference Manual: Procedures.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

The permission checks for shutdown differ based on your granular permissions settings.

SettingDescription
Enabled
With granular permissions enabled:
  • To shutdown a SMP server, a cluster instance, or a backup server, you must be a user with shutdown privilege.

  • To shutdown a cluster, you must be a user with shutdown privilege and manage cluster privilege.

Disabled

With granular permissions disabled, you must be a user with sa_role.

Auditing

Values in event and extrainfo columns of sysaudits are:

InformationValues
Event

51

Audit option

security

Command or access audited

Server shutdown

Information in extrainfo
  • Roles – current active roles

  • Keywords or optionsshutdown

  • Previous value – NULL

  • Current value – NULL

  • Other information – NULL

  • Proxy information – original login name, if set proxy is in effect

Related reference
alter database
checkpoint