Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 5.57 KB

File metadata and controls

68 lines (51 loc) · 5.57 KB
title Common Language Runtime (CLR) Programming
description Links to Common Language Runtime (CLR) programming articles
ms.custom seo-lt-2019
ms.date 03/16/2017
ms.prod sql
ms.reviewer
ms.technology clr
ms.topic reference
helpviewer_keywords
CLR [SQL Server] See common language runtime [SQL Server]
Database Engine [SQL Server], .NET Framework
.NET Framework [SQL Server], Database Engine programming
common language runtime [SQL Server]
.NET Framework [SQL Server]
ms.assetid 951bf851-3e6e-4361-ae6a-2bcd5b837ebd
author rothja
ms.author jroth

Common Language Runtime (CLR) Integration Programming Concepts

[!INCLUDEappliesto-ss-asdbmi-xxxx-xxx-md] Beginning with [!INCLUDEssVersion2005], [!INCLUDEssNoVersion] features the integration of the common language runtime (CLR) component of the .NET Framework for [!INCLUDEmsCoName] Windows. This means that you can now write stored procedures, triggers, user-defined types, user-defined functions, user-defined aggregates, and streaming table-valued functions, using any .NET Framework language, including [!INCLUDEmsCoName] Visual Basic .NET and [!INCLUDEmsCoName] Visual C#.

The Microsoft.SqlServer.Server namespace includes core functionality for CLR programming in [!INCLUDEssNoVersion]. However, the Microsoft.SqlServer.Server namespace is documented in the .NET Framework SDK. This documentation is not included in [!INCLUDEssNoVersion] Books Online.

Important

By default, the .NET Framework is installed with [!INCLUDEssNoVersion], but the .NET Framework SDK is not. Without the SDK installed on your computer and included in the Books Online collection, links to SDK content in this section do not work. Install the .NET Framework SDK. Once installed, add the SDK to the Books Online collection and table of contents by following the instructions in Installing the .NET Framework SDK.

Note

CLR functionality, such as CLR user functions, are not supported for Azure SQL Database.

The following table lists the topics in this section.

Common Language Runtime (CLR) Integration Overview
Provides a brief overview of the CLR, and describes how and why this technology has been used in [!INCLUDEssNoVersion]. Describes the benefits of using the CLR to create database objects.

Assemblies (Database Engine)
Describes how assemblies are used in [!INCLUDEssNoVersion] to deploy functions, stored procedures, triggers, user-defined aggregates, and user-defined types that are written in one of the managed code languages hosted by the [!INCLUDEmsCoName] .NET Framework common language runtime (CLR), and not written in [!INCLUDEtsql].

Building Database Objects with Common Language Runtime (CLR) Integration
Describes the kinds of objects that can be built using the CLR, and reviews the requirements for building CLR database objects.

Data Access from CLR Database Objects
Describes how a CLR routine can access data stored in an instance of [!INCLUDEssNoVersion].

CLR Integration Security
Describes the CLR integration security model.

Debugging CLR Database Objects
Describes limitations of and requirements for debugging CLR database objects.

Deploying CLR Database Objects
Describes deploying assemblies to production servers.

Managing CLR Integration Assemblies
Describes how to create and drop CLR integration assemblies.

Monitoring and Troubleshooting Managed Database Objects
Provides information about the tools that can be used to monitor and troubleshoot managed database objects and assemblies running in [!INCLUDEssNoVersion].

Usage Scenarios and Examples for Common Language Runtime (CLR) Integration
Describes usage scenarios and code samples using CLR objects.

See Also

Assemblies (Database Engine)
Installing the .NET Framework SDK