Overview of CLR integration.The CLR (Common Language Runtime) integration is hosted in the Microsoft SQL Server 2005. With CLR integration, stored procedures, triggers, user- defined functions, user-defined types, and user-defined aggregates in managed code, etc can be written. As managed code compiles to native code before executing, significant performance can be achieved. The SQL Server acts as an operating system for the CLR when it is hosted inside SQL Server.
Following are the steps to build a CLR stored procedure in SQL Server 2005.
- Enable CLR integration in SQL Server 2005 - Create a CLR stored procedure Assembly - Deploy the Assembly in SQL Server 2005 - Create and execute the CLR stored procedure in SQL Server 2005
|