Interview Questions

Which of the following classes provide the context of the caller to SQLCLR Assemblies? Submitted by Michael Coles

Microsoft SQL Server FAQs


(Continued from previous question...)

Which of the following classes provide the context of the caller to SQLCLR Assemblies? Submitted by Michael Coles

Answer: Microsoft.SqlServer.Server.SqlContext

Explanation: The answer is 1:Microsoft.SqlServer.Server.SqlContext
SQLCLR Assemblies can use the Microsoft.SqlServer.Server.SqlContext class - it is an abstraction of the caller's context. Objects exposed by SqlContext include SqlPipe, SqlTriggerContext, and WindowsIdentity.

(Continued on next question...)

Other Interview Questions