user

Description

Returns the name of the current user.

Syntax

user

Parameters

None.

Examples

Example 1

select user

------
dbo

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Any user can execute user.

See also

Functions user_name