Interview Questions

What is the system function to get the current user's user id?

Microsoft SQL Server interview questions for DBA


(Continued from previous question...)

What is the system function to get the current user's user id?

USER_ID(). Also check out other system functions like USER_NAME(), SYSTEM_USER, SESSION_USER, CURRENT_USER, USER, SUSER_SID(), HOST_NAME().

(Continued on next question...)

Other Interview Questions