Share via


CLR Integration Security in SQL Server (ADO.NET)

Microsoft SQL Server 2005 introduces the integration of the common language runtime (CLR) component of the .NET Framework. CLR integration allows you to write stored procedures, triggers, user-defined types, user-defined functions, user-defined aggregates, and streaming table-valued functions, using any .NET Framework language, such as Microsoft Visual Basic .NET or Microsoft Visual C#.

The CLR supports a security model called code access security (CAS) for managed code. In this model, permissions are granted to assemblies based on evidence supplied by the code in metadata. SQL Server integrates the user-based security model of SQL Server with the code access-based security model of the CLR.

External Resources

For more information on CLR integration with SQL Server, see the following resources.

Resource

Description

Code Access Security

Contains topics describing CAS in the .NET Framework.

CLR Integration Security

Discusses the security model for managed code executing inside of SQL Server.

See Also

Concepts

Application Security Scenarios in SQL Server (ADO.NET)

Other Resources

Securing ADO.NET Applications

SQL Server Common Language Runtime Integration (ADO.NET)

ADO.NET Managed Providers and DataSet Developer Center