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
Return the name of the current user in the SQL Server database:
SELECT CURRENT_USER;
The CURRENT_USER function returns the name of the current user in the SQL Server database.
CURRENT_USER
Return the cosine of a number:
SELECT COS(2);
The COS() function returns the cosine of a number.
COS(number)