SESSION_USER Security Function TSQL Tutorial

Is an security function and return the session user.

SESSION_USER Syntax:

SESSION_USER

SESSION_USER Example:

select SESSION_USER as 'Session_user';

Session_user
dbo

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