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 value of PI:
SELECT PI();
The PI() function returns the value of PI.
Note: Also look at the DEGREES() and RADIANS() functions.
PI()