Articles

Current Articles | Categories | Search | Syndication

XML Transformation with User-defined CLR Function, C#, and XSLT - Part 1
By Reuben Shaffer @ 4:20 PM :: 122 Views :: 1 Comments

This article is part one of a two part series to try and show some of the versatility that CLR provides us. Part one will focus on creating a user-defined CLR function to use a XSLT file to transform a XML string and e-mail it using sp_send_dbMail.

Read More..
How to Produce Clean Errors from CLR Exceptions
By Jonathan Kehayias @ 8:58 AM :: 87 Views :: 0 Comments

An important part of building CLR objects for use in SQL Server is good exception management.  Part of this is raising the exception back to the calling operation so that it can be handled appropriately.  In .NET this is handled using try/catch blocks in the code, and throwing a new instance of the Exception class with a message. This article will show how to cleanup the Exception message in TSQL to show only the needed information cleanly.

Read More..
A Simple Regular Expression Function with C# and SQL Server 2005
By Reuben Shaffer @ 10:21 AM :: 112 Views :: 0 Comments

This article is to demonstrate how easy it is to write a primitive CLR regular expression function with C# and SQL Server 2005.  We will solve the problem of separating numeric from nonnumeric characters. 

Read More..
Creating a User Defined Aggregate with SQL Server 2005
By Andrew Novick @ 12:00 AM :: 100 Views :: 0 Comments

Sample SQLCLR user-defined aggregate for the product of a column of numbers.  There is related discussion about the SQL  alternatives to SQLCLR aggregates.  

Read More..
Using CLR User Defined Types in SQL Server - Part 1 - Considerations
By Jonathan Kehayias @ 5:47 PM :: 302 Views :: 0 Comments

If you choose to implement CLR User Defined Types in SQL Server, there are certain considerations that must be understood to minimize problems later on.  This article covers these considerations and how to plan for them when you are designing the UDT.

Read More..
Previous Page | Next Page

Survey

Which of the following CLR objects are you currently using in SQL Server?




Submit Survey  View Results

Links


Copyright 2007 by SQLCLR.net Terms Of Use Privacy Statement
Website graphics provided by Matt Green Designs
Page generated in 0.2499952 seconds.

All information and example code on this site is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from its use.

This site is in no way affiliated with Microsoft. Unless specifically stated otherwise, nothing should be construed to represent the official positions or opinions of Microsoft and/or its Employees.