Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Returns the user name for the specified user ID.
USER_NAME( [ user-id ] )
The user ID of the user you are searching for.
If you do not specify user-id, the user name of the current user is returned.
The following statement returns the user name for user ID 101.
SELECT USER_NAME( 101 );