Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference between system_user, current_user, and user_name()? 1

Status
Not open for further replies.

ddiamond

Programmer
Apr 22, 2005
918
US
What is the difference between the functions system_user, current_user and user_name()?
 
Thanks guys. I've looked at all of the links but still cannot tell the difference. The description of each one appears to be the same. Is there really no difference? What I am really looking for is a function that will return the name of the user that logged into the database, regardless of the current context. But all of these functions return the "impersonated" user if a context switch occured.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top