User_name function | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

User_name function

Hello everybody ! I have a small problem : in my query i use the function User_name() to get the name of the current user but it returs ‘dbo’ as result in place of ‘PDB’ which has the system administrators server role.
Is there a solution to this problem ? Thanks to all !
Try SUSER_SNAME. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS” with no rights for the sake of knowledge sharing.
]]>