host_name

Description

Returns the current host computer name of the client process.

Syntax

host_name()

Parameters

None.

Examples

Example 1

select host_name()
------------------------------
violet

Usage

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute host_name.

See also

Function host_id