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

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Any user can execute host_name.

See also

Function host_id