Loading lesson path
Concept visual
Start at both ends
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
SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse
❮ SQL Server Functions