SYSTEM_USER Security Function TSQL Tutorial

Is an security function and return the system user name.

SYSTEM_USER Syntax:

SYSTEM_USER

SYSTEM_USER Example:

select SYSTEM_USER as 'System_user';

System_user
comp\john

See also: T-SQL Functions -> CURRENT_USER | ORIGINAL_LOGIN | SESSION_USER | USER_NAME