DBA > Job Interview Questions > Microsoft SQL Server FAQs

What does the function ORIGINAL_LOGIN return in

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

What does the function ORIGINAL_LOGIN return in SQL Server 2005?

Answer: The login used to connect to SQL Server.
Explanation: This function returns the name of the login originally used to connect to SQL Server for a session, regardless of any context switching that has occurred.

(Continued on next question...)

Other Job Interview Questions