bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL Server CURRENT_USER Function

Example

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

Technical Details

Works in:SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

Previous

SQL Server CONVERT() Function

Next

SQL Server IIF() Function