host_id

Description

Returns the host process ID or the client process.

Syntax

host_id()

Parameters

None.

Examples

Example 1

select host_id()

------------------------------ 
24711

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Any user can execute host_id.

See also

Function host_name