SQL Server CURRENT_USER Function
Example
Return the name of the current user in the SQL Server database:
SELECT CURRENT_USER;
Try it Yourself »
Definition and Usage
The CURRENT_USER function returns the name of the current user in the SQL Server database.
Syntax
CURRENT_USER
Technical Details
Works in: | SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005 |
---|