Know the user name of the current database

Abhisek
Posted by Abhisek under Sql Server category on | Views : 1333
USER_NAME(id)
returns the current user in the current database.

SELECT USER_NAME()
-->'Abhisek'

Comments or Responses

Login to post response