Articles

Current Articles | Categories | Search | Syndication

Using CLR Impersonation to Access Resources Outside of SQL Server
By Jonathan Kehayias @ 6:35 PM :: 73 Views :: 0 Comments

Traditionally if you had a need to access a file or other resource outside of SQL Server, the SQL Server service account was required to have appropriate file system access to the folder or path containing the file.  With CLR integration, this is no longer an absolute requirement.  Identity Impersonation will allow you to implicitly or explicitly change the execution context inside of a SQLCLR Function, Procedure, or Trigger. 

Read More..
Using an Application Configuration (app.config/web.config) File in SQL Server CLR Integration
By Jonathan Kehayias @ 12:43 PM :: 60 Views :: 0 Comments

A common part of programming in .NET is to use an configuration file to store configuration information in an easily modifiable location.  The app.config or web.config file is an invaluable inclusion in most .NET projects and developers may need to maintain this functionality as a part of logic sharing between objects in the database and the application as well.  This article will demonstrate how to configure your SQLCLR project to use Configuration Files in SQL.

Read More..
Building a SAFE HttpUtility Class for SQL CLR
By Jonathan Kehayias @ 7:05 PM :: 77 Views :: 0 Comments

This Article covers how to build a SQL Safe version of the System.Web.HttpUtility class methods HtmlEncode and HtmlDecode.  Source code is provided in the Examples area for these specific methods to be used in SQL CLR as User-Defined Functions with a SAFE Permission Set.

Read More..
Using CLR User Defined Types in SQL Server - Part 3 - Altering an Existing UDT
By Jonathan Kehayias @ 8:51 PM :: 57 Views :: 0 Comments

No matter how hard you try at some point it might become necessary for you to add a method to an existing CLR User-Defined Type to support a new business rule, or if created a single assembly with all of your objects including your CLR UDT, you may need to modify an existing function or stored procedure to meet new requirements.  This article will demonstrate how to use ALTER ASSEMBLY to perform these updates.

Read More..
XML Transformation with User-defined CLR Function, C#, and XSLT - Part 1
By Reuben Shaffer @ 4:20 PM :: 69 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..
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.3281187 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.