SQL Server SYSTEM_USER Function

Posted by

SQL Server

SYSTEM_USER

Function

Example

Return the login name information for the current user:

SELECT SYSTEM_USER;


Definition and Usage

The SYSTEM_USER function returns the login name for the current user.

Syntax

SYSTEM_USER

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Data Warehouse, Parallel Data
Warehouse