SQL Server Database Administrator Question:

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

Tweet Share WhatsApp

Answer:

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

Download SQL Server DB Administrator PDF Read All 84 SQL Server DB Administrator Questions
Previous QuestionNext Question
What is normalization? Explain different levels of normalization?Can we have a nested transaction?