HOST_NAME Function
Returns the local computer name.
Syntax
HOST_NAME()Return Value
The computer hostname.Example
PRINT HOST_NAME();
|
|
SQL Notebook |
HOST_NAME FunctionReturns the local computer name.
HOST_NAME()PRINT HOST_NAME();