SQL CURRENT_USER Function

Example

Return the name of the current user in the SQL Server database:

SELECT CURRENT_USER;

Definition and Usage

The CURRENT_USER function returns the name of the current user in the SQL Server database.

Syntax

CURRENT_USER

Continue reading SQL CURRENT_USER Function