Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of .net Assemblies in SQL Server 2005

I've recently discovered that it's possible to place .net assemblies on SQL Server >=2005 servers so that .net functions can be called in T/SQL statements.

I wondered what uses people found for these and how they perform?

like image 775
ljs Avatar asked Dec 14 '25 21:12

ljs


1 Answers

The first general purpose use for the CLR in SQL 2005 I created was a SQL 2005 assembly that has a variety of functions that perform string operations and pattern matches using regular expressions. The native string functions in SQL 2005 can be augmented so that you can validate common formats like phone numbers or credit card numbers or perform ad-hoc regular expressions within stored procedures.

For deterministic user defined functions, I have found the SQL CLR support to be very performant.

like image 187
Oppositional Avatar answered Dec 17 '25 11:12

Oppositional



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!