Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

SYSTEM_USER

Example

Retrieve the login name of the current user.

SELECT SYSTEM_USER;

Definition and Usage

The SYSTEM_USER function retrieves the login name of the current user in the database.

Syntax

SYSTEM_USER

Technical Details

Works in:

 SQL Server (from 2008 onward), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse