HOST_ID
system function
What changes
- Input
- arguments or engine/session state
- Output or change
- value
- Return type
- char(10)
Syntax at a glance
HOST_ID ()
Work example
Read the client host identifier reported for the session.
Read state in the intended scope and immediately after the statement it describes. Treat host values as untrusted.
Check your work Treat it as client-supplied diagnostic data and never use it to grant access.
Open Microsoft Learn for full syntax, permissions, and details for your version.