Google News
logo
SQL Server - Quiz(MCQ)
Which of the following condition in the where clause will return the login identification name of the user?
A)
UserName = SUSER_SNAME()
B)
UserName = USER()
C)
UserName = SUSER_NAME()
D)
UserName = CURRENT_USER()

Correct Answer :   UserName = SUSER_SNAME()


Explanation : USER_NAME or CURRENT_USER Return the database user name.

Advertisement