ORIGINAL_LOGIN() Security Function TSQL Tutorial

Is an security function and return the login name connected to the instance of SQL Server.

ORIGINAL_LOGIN() Syntax:

ORIGINAL_LOGIN()

ORIGINAL_LOGIN() Example:

select ORIGINAL_LOGIN() as Original_user;

Original_user
comp\john

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