Returns the name of the current server user, or the user whose server ID is specified.
suser_name([server_user_id])
select suser_name()
------------------------------ sa
select suser_name(4)
------------------------------ margaret
See alsoTransact-SQL Users Guide .
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute suser_name.