Example
Return the login name information for the current user:
sql
SELECT SYSTEM_USER;
Definition and Usage
The SYSTEM_USER function returns the login name for the current user.
Syntax
text
SYSTEM_USER
Technical Details
| Works in: | SQL Server (starting with 2008), Azure SQL Data Warehouse, Parallel Data Warehouse |
|---|