Example
Return the name of the current user in the SQL Server database:
SELECT CURRENT_USER;
Definition and Usage
The CURRENT_USER function returns the name of the current user in the SQL Server database.
Syntax
CURRENT_USER
Return the name of the current user in the SQL Server database:
SELECT CURRENT_USER;
The CURRENT_USER function returns the name of the current user in the SQL Server database.
CURRENT_USER