user

Description

Returns the name of the current user.

Syntax

user

Parameters

None.

Examples

Example 1

select user
------
dbo

Usage

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute user.

See also

For general information about system functions, see “System functions”.

Functions user_name