SQL Server 2005 supports CLR so it means we can use CLR in backend so how to do that. let's see.
Yes, it is possible to use .NET in a SQL Server 2005 database. and .Net framework 2.0 and above.
MSDN says,
Create a SQL user-defined function by adding a User-Defined Function to a SQL Server project. After successful deployment, the user-defined function can be called and executed.
see below links
http://stackoverflow.com/questions/4002382/how-to-call-c-sharp-function-in-stored-procedure
https://msdn.microsoft.com/en-us/library/w2kae45k(v=vs.90).aspx
http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/
Thanks
Koolprasd2003
Editor, DotNetSpider MVM
Microsoft MVP 2014 [ASP.NET/IIS]