SQL Server Performance Forum – Threads Archive
User_name functionHello 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
This posting is provided â€œAS ISâ€ with no rights for the sake of knowledge sharing.