Developing Custom Managed Database Objects

SQL Server 2008 hosts the common language runtime (CLR), implementing what’s known as the Hosting API. The Hosting API gives SQL Server 2008 full control over the execution of .NET code in a carefully managed environment that honors the shared resource usage of both SQL Server and the CLR. The CLR provides an execution context far safer than that of code you might formerly have run in an extended stored procedure or COM object under SQL Server 2000 and previous editions.

In the sections that follow, you will create one of each of the managed versions of database routines and types. You work with both the SQL Server project type in Visual Studio 2008 as well as the T-SQL Data Definition Language (DDL) ...

Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.