Microsoft SQL Server 2005: The Complete Reference: Full Coverage of all New and Improved Features

Overview

This chapter describes the .NET Framework and its Common Language Runtime (CLR) and how SQL Server 2005 now integrates this environment into its processing engine The incorporation of a version of the CLR directly into SQL Server (in-process) has catapulted the product into the future, years ahead of itself. To fully understand how it works, this chapter looks at the various aspects of this runtime environment, because it is important to us going in from the ground up to create functions, stored procedures, triggers, data structures (such as arrays) and .NET SQL Server integrated applications, components, and other services.

With this concise coverage of the.NET Framework’s runtime, you will be able to design and code applications with the runtime in mind, especially in the area of memory management, which represents the biggest change in the way we write any SQL Server-based applications. Knowing about the runtime is also especially important for programming with the correct security model, exception handling, referencing the correct assemblies to target namespaces, debugging assemblies, and otherwise managing assemblies (deployment and maintenance). All of these subjects make programming the SQL Server CLR far more complex than standard T-SQL.

This chapter examines the following key components of the Framework:

We will then break down the Common Language Runtime into several components to be discussed as follows:

Even if you have not had any experience writing and compiling a.NET application outside the SQL Server engine, this chapter will give you the necessary information to hit the ground running-writing, compiling, and executing any stored procedure, function, trigger, or user-defined data type (UDT).

Категории