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

Submitted by: Administrator
USER_ID().

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

Read Online SQL Server Database Administrator Job Interview Questions And Answers