CLR Programmability Samples
SQL Server 2005 includes sample applications, package samples and numerous coding samples that you can use to learn about the common language runtime (CLR) programmability features of SQL Server.
Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator.
The following table describes the CLR programmability samples.
Name | Description |
---|---|
Provides utilities that form an extra layer of functionality on top of the base AdventureWorks sample database. |
|
Shows the implementation of five supplementary character-aware Transact-SQL string functions that can handle both Unicode and supplementary character strings. |
|
Demonstrates transferring large binary objects (LOBs) between SQL Server and a file system that can be accessed by the server by using CLR stored procedures |
|
Contains a number of simple functions demonstrating various features of the CLR in-process data access provider. |
|
Contains a streaming table-valued function, written in C# and Visual Basic, that splits a comma-separated string into a table with one column. |
|
Contains a number of user-defined data type utility functions. |
|
Shows the creation and use of a simple user-defined data type from both Transact-SQL and a client application using System.Data.SqlClient |
|
Demonstrates the implementation of a user-defined data type that extends the type system of the database to provide storage for UTF8 encoded values. |
|
Defines two user-defined data types (CADatetime and CADate), which provide calendar-aware handling of dates and times. |
|
Demonstrates how to use server-side cursors to work around the lack of Multiple Active Result Set (MARS) support for server-side programming. |
|
Demonstrates how to pass an array of information from a client to a CLR integration stored procedure on the server by using a CLR integration user-defined data type. |
|
Demonstrates the basic operations that are involved in creating, deploying, and testing a simple CLR integration-based stored procedure. |
|
Demonstrates the basic operations that are involved in creating, deploying, and testing a simple world ready CLR integration-based stored procedure. |
|
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. |
|
Demonstrates how you can use CLR integration technology to enhance the basic indexing and query capabilities to support more sophisticated types of data and queries over that data. |
|
Demonstrates how to invoke the managed code interface to Oracle to expose the results of any Oracle query as a table-valued function. |
|
Demonstrates how to return an ADO .NET based DataSet within a server side CLR-based stored procedure as a result set to the client. |
|
Demonstrates controlling transactions by using the managed APIs located in the System.Transactions namespace. |
See Also
Other Resources
Database Engine .NET Framework Programming