SQL Server SESSION_USER Function

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



SQL Server SESSION_USER Function




❮ SQL Server Functions



Example


Return the user name of the current user:



SELECT SESSION_USER;

Try it Yourself »


Definition and Usage


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



Syntax



SESSION_USER


Technical Details




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



❮ SQL Server Functions