instance_name

Description

Returns the name for the Adaptive Server whose id you provide, or the name of the Adaptive Server from which it is issued if you do not provide a value for id.

Syntax

instance_name([id])

Parameters

id – id of the Adaptive Server whose name you are researching.

Examples

Returns the name of the instance with an id of 12:

select instance_name(12)

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute instance_name.