Developing Custom Managed Database Objects

SQL Server 2012 hosts the common language runtime (CLR), implementing what’s known as the Hosting API. The Hosting API gives SQL Server 2012 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 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 Database project type in SSDT as well as the T-SQL Data Definition Language (DDL) syntax for managed objects. ...

Get Microsoft® SQL Server 2012 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.