Share via


Usage Scenarios and Examples for Common Language Runtime (CLR) Integration

Microsoft SQL Server 2005 includes sample applications, package samples, and numerous coding samples that you can use to learn about the programmability features of common language runtime (CLR) integration.

The following table describes the CLR integration programmability samples.

Name Description

AdventureWorks Cycles CLR Layer

Provides utilities that form an extra layer of functionality on top of the base AdventureWorks sample database.

Manipulación de cadenas que detectan caracteres complementarios

Shows the implementation of five supplementary-aware Transact-SQL string functions that can handle both Unicode and surrogate strings.

Control de objetos grandes (LOB)

Demonstrates transferring large binary objects (LOBs) between SQL Server and a file system accessible to the server using CLR stored procedures.

InProcessDataAccess (ejemplo)

Contains a number of simple functions demonstrating various features of the CLR in-process data access provider.

StringUtilities (ejemplo)

Contains a streaming table-valued function (TVF), written in Microsoft Visual C# and Microsoft Visual Basic, which splits a comma-separated string into a table with one column.

UDTUtilities (ejemplo)

Contains a number of user-defined data type (UDT) utility functions.

UserDefinedDataType (UDT) (ejemplo)

Shows the creation and use of a simple UDT from both Transact-SQL and a client application using System.Data.SqlClient.

Tipo de datos definido por el usuario (UDT) en cadenas UTF8

Demonstrates the implementation of a UDT that extends the type system of the database to provide storage for UTF8 encoded values.

UDT de fechas y horas para calendario

Defines two UDTs that provide calendar-aware handling of dates and times.

ResultSet (ejemplo)

Demonstrates how to execute commands while reading through results of a query, without opening a new connection and without reading all results into memory.

Array Parameter (ejemplo)

Demonstrates how to create, update, or delete a set of rows in a database by passing an array of information from a client to a CLR integration stored procedure on the server. This is done using a UDT.

Hello World (ejemplo)

Demonstrates the basic operations to create, deploy, and test a simple CLR integration-based stored procedure.

Hello World Ready (ejemplo)

Demonstrates the basic operations to create, deploy, and test a simple world ready CLR integration-based stored procedure.

Impersonation (ejemplo)

Demonstrates how to use impersonation to use the credentials passed from the client. This is done to access operating system protected resources when you are using integrated security.

Spatial (ejemplo)

Demonstrates how to use impersonation to use the credentials passed from the client to access operating system protected resources, such as files, when you are using integrated security.

Oracle TVF (ejemplo)

Demonstrates how to invoke the managed code interface to Oracle to expose the results of any Oracle query as a table-valued function.

Send DataSet (ejemplo)

Demonstrates how to return an ADO .NET based DataSet within a server side CLR-based stored procedure as a result set to the client.

System.Transactions (ejemplo)

Demonstrates controlling transactions by using the managed APIs located in the System.Transactions namespace.

Vea también

Otros recursos

Ejemplos de motor de base de datos de SQL Server

Ayuda e información

Obtener ayuda sobre SQL Server 2005