HOST_NAME() System Function TSQL Tutorial

Return the host name.

HOST_NAME() Syntax:

HOST_NAME()

HOST_NAME() Example:

select HOST_NAME() as Host_name;

Host_name
TEST

See also: T-SQL Functions -> COALESCE | HOST_ID | ISNULL | ISNUMERIC | NULLIF