Returns the host process ID or the client process.
host_id()
select host_id()
------------------------------ 24711
host_id, a system function, returns the host process ID of the client process (not the Server process).
For general information about system functions, see “String functions”.
SQL92 – Compliance level: Transact-SQL extension.
Any user can execute host_id.
Function host_name