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 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005

❮ SQL Server Functions