THE WORLD'S LARGEST WEB DEVELOPER SITE

SQL Server SYSTEM_USER Function

❮ SQL Server Functions

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_USER

Technical Details

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

❮ SQL Server Functions