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

