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

Documentation Transact-SQL Users Guide

Functions user_name