SYSTEM_USER (TSQL Function)
Returns the name of the current login.
Syntax
SYSTEM_USER
Return Types
Returns varchar
.
Remarks
The functions SYSTEM_USER
and SUSER_NAME()
return the same result.
Examples
PRINT SYSTEM_USER;
PRINT SUSER_NAME();
PRINT SUSER_NAME(1034);
The result is:
sa
sa
jack