Jan 23, 2004 #1 lechuck Programmer Sep 4, 2000 26 SE I have a stored procedure that i need to check which SQL-user who is processing the current procedure. Is this possible and how do I accomplish that?
I have a stored procedure that i need to check which SQL-user who is processing the current procedure. Is this possible and how do I accomplish that?
Jan 23, 2004 #2 LFCfan Programmer Nov 29, 2002 3,015 GB select current_user, system_user system_user will return the windows user if windows authentication is used, or the SQL Login id of the user if sql server authentication is used Hope this helps Upvote 0 Downvote
select current_user, system_user system_user will return the windows user if windows authentication is used, or the SQL Login id of the user if sql server authentication is used Hope this helps