suser_name

Returns the name of the current server user, or the user whose server ID is specified.

Syntax

suser_name([server_user_id])

Parameters

Examples

Usage

See alsoTransact-SQL Users Guide .

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute suser_name.

Related reference
suser_id
user_name