NTUSERNAME()

This function is used to retrieve the current user name.

 

Example:

SELECT ntusername()