The T-SQL Original_Login() is a security function and returns 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