79578488

Date: 2025-04-17 04:49:52
Score: 2
Natty:
Report link

I did faced similar kind of issue and select user_name() was also returning "dbo" instead of the current logged in user. The reason was the user was given "sysadmin" role. Removing this role fixed the issue for me. I thought this would be helpful for some one facing this issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ramesh