DBA > Job Interview Questions > Microsoft SQL Server FAQs

Setting the TRUSTWORTHY database property to ON

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

(Continued from previous question...)

Setting the TRUSTWORTHY database property to ON allows you to execute the following from within the context of the database: Submitted by Charles Hawkins

Answer
Objects from unsigned CLR assemblies with EXTERNAL_ACCESS or UNSAFE permissions

Explanation
In order to execute objects from CLR assemblies with EXTERNAL_ACCESS or UNSAFE permissions, the assemby must either be signed with a key pair or the database hosting the assembly must have the TRUSTWORTHY database property set to ON. Executing the other answers is essentially controlled by permissions. Setting the TRUSTWORTHY database property to ON also allows you to use the EXECUTE AS clause to allow impersonation outside the scope of the database within the instance but this was not one of the answers.

(Continued on next question...)

Other Job Interview Questions