SQL CLR: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
m Moving Category:.NET Framework to Category:.NET per Wikipedia:Categories for discussion/Log/2021 February 18#Category:.NET Framework |
||
(16 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
'''SQL CLR''' or '''SQLCLR''' ([[SQL]] [[Common Language Runtime]]) is technology for hosting of the Microsoft .NET common language runtime engine within SQL Server. |
{{short description|Technology for hosting of the Microsoft .NET common language runtime engine within SQL Server.}} |
||
'''SQL CLR''' or '''SQLCLR''' ([[SQL]] [[Common Language Runtime]]) is technology for hosting of the Microsoft .NET common language runtime engine within SQL Server. The SQLCLR allows [[managed code]] to be hosted by, and run in, the [[Microsoft SQL Server]] environment. |
|||
This technology, introduced in Microsoft SQL Server 2005, allow users for example to create the following types of managed code objects in SQL Server in .NET languages such as [[C Sharp (programming language)|C#]] or [[VB.NET]]. |
This technology, introduced in Microsoft SQL Server 2005, allow users for example to create the following types of managed code objects in SQL Server in .NET languages such as [[C Sharp (programming language)|C#]] or [[VB.NET]]. |
||
*[[Stored procedure]]s (SPs) which are analogous to ''procedures'' or ''void functions'' in procedural languages like VB or C, |
*[[Stored procedure]]s (SPs) which are analogous to ''procedures'' or ''void functions'' in procedural languages like VB or C, |
||
*[[Database trigger| |
*[[Database trigger|Triggers]] which are stored procedures that fire in response to [[Data Manipulation Language]] (DML) or [[Data Definition Language]] (DDL) events, |
||
*[[User-defined function]]s (UDFs) which are analogous to functions in procedural languages, |
*[[User-defined function]]s (UDFs) which are analogous to functions in procedural languages, |
||
*[[User-defined aggregate]]s (UDAs) which allow developers to create custom aggregates that act on sets of data instead of one row at a time, |
*[[User-defined aggregate]]s (UDAs) which allow developers to create custom aggregates that act on sets of data instead of one row at a time, |
||
*[[User-defined type]]s (UDTs) that allow users to create simple or complex data types which can be serialized and deserialized within the database. |
*[[User-defined type]]s (UDTs) that allow users to create simple or complex data types which can be serialized and deserialized within the database. |
||
The SQL CLR relies on the creation, deployment, and registration of |
The SQL CLR relies on the creation, deployment, and registration of [[Assembly (CLI)|CLI assemblies]], which are physically stored in managed code dynamic load libraries (DLLs). These assemblies may contain CLI namespaces, classes, functions and properties. |
||
==External links== |
==External links== |
||
* |
*[https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/common-language-runtime-integration-overview Microsoft Docs: Common Language Runtime Integration Overview] (Latest version) |
||
* |
*[http://msdn2.microsoft.com/en-us/library/ms345136.aspx MSDN: Using CLR Integration in SQL Server 2005] (Provides the perspective at the time of the initial release.) |
||
* [http://blogs.msdn.com/sqlclr/ SQL CLR Team Blog (No posts since 2006, might be dead)] |
|||
{{.NET Framework}} |
|||
{{DEFAULTSORT:Sql Clr}} |
|||
[[Category:SQL]] |
[[Category:SQL]] |
||
[[Category:Microsoft database software]] |
[[Category:Microsoft database software]] |
||
[[Category:.NET |
[[Category:.NET]] |
||
⚫ | |||
⚫ | |||
[[zh:SQL CLR]] |
Latest revision as of 21:49, 9 March 2021
SQL CLR or SQLCLR (SQL Common Language Runtime) is technology for hosting of the Microsoft .NET common language runtime engine within SQL Server. The SQLCLR allows managed code to be hosted by, and run in, the Microsoft SQL Server environment.
This technology, introduced in Microsoft SQL Server 2005, allow users for example to create the following types of managed code objects in SQL Server in .NET languages such as C# or VB.NET.
- Stored procedures (SPs) which are analogous to procedures or void functions in procedural languages like VB or C,
- Triggers which are stored procedures that fire in response to Data Manipulation Language (DML) or Data Definition Language (DDL) events,
- User-defined functions (UDFs) which are analogous to functions in procedural languages,
- User-defined aggregates (UDAs) which allow developers to create custom aggregates that act on sets of data instead of one row at a time,
- User-defined types (UDTs) that allow users to create simple or complex data types which can be serialized and deserialized within the database.
The SQL CLR relies on the creation, deployment, and registration of CLI assemblies, which are physically stored in managed code dynamic load libraries (DLLs). These assemblies may contain CLI namespaces, classes, functions and properties.
External links
[edit]- Microsoft Docs: Common Language Runtime Integration Overview (Latest version)
- MSDN: Using CLR Integration in SQL Server 2005 (Provides the perspective at the time of the initial release.)