Security in the CLR World Inside SQL Server May 22, 2006 ne of the major benefits of writing .NET code to run in the Common Language Runtime (CLR) hosted in any environment is code access security (CAS). CAS provides a code-based