A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: System Functions

host_name()

The system function host_name() returns the name of the host, i.e. the name of the computer, on which the client runs. The function host_name() is a Transact-SQL extension. It can be executed by any user.

Syntax of the System Function host_name()

    host_name()
    

The Parameter of the System Function host_name()

The function host_name() is executed without parameters.

Example for the System Function host_name()

    select host_name()
go
-----
mercur01

Returns the name of the host mercur01, i.e. the name of the computer.

See also:

ASE T-SQL - Aggregate Functions,
audit_event_name(),
col_length(),
col_name(),
curunreservedpgs(),
datachange(),
datalength(),
data_pages(),
data_pgs(),
db_id(),
db_name(),
host_id(),
identity(),
index_col(),
index_colorder(),
isnull(),
lct_admin(),
license_enabled(),
lockscheme(),
next_identity(),
object_id(),
object_name(),
pagesize(),
pointer_size(),
ptn_data_pgs(),
reserved_pages(),
reserved_pgs(),
rowcnt(),
row_count(),
showplan_in_xml(),
syb_sendmsg(),
syb_sendmsg(),
System Functions,
tempdb_id(),
tran_dumpable_status(),
tsequal(),
used_pages(),
used_pgs().