CURRENT_USER

Returns the name of the current user. This function is equivalent to USER_NAME().

Syntax

CURRENT_USER()

Return types

sysname

Example

SELECT CURRENT_USER;

See Also