USER_NAME Function
  Returns the current logged-in username.
Syntax
USER_NAME()Return Value
The username of the currently logged-in user.Example
PRINT USER_NAME();
| 
 | 
SQL Notebook | 
USER_NAME FunctionReturns the current logged-in username.
USER_NAME()PRINT USER_NAME();