instance_id

(Cluster environments only) Returns the ID of the named instance, or the instance from which it is issued if you do not provide a value for name.

Syntax

instance_id([name])

Parameters

Examples

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute instance_id.