host_name

Displays the current host computer name of the client process (not the server process).

Syntax

host_name()

Examples

Usage

See also Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute host_name.

Related reference
host_id