How to call C# function in stored procedure

Jeevan Bhatt picture Jeevan Bhatt · Oct 23, 2010 · Viewed 17.9k times · Source

SQL Server 2005 supports CLR so it means we can use CLR in backend so how to do that, I have some function in c# which do some complex manipulation with date-time variable now I want to use those functions in SP. First of all IS IT POSSIBLE TO DO THIS.

Answer

OMG Ponies picture OMG Ponies · Oct 23, 2010

Yes, it is possible to use .NET in a SQL Server 2005 database. Be aware that the .NET version supported by SQL Server 2005 is 2.0.

Here's a link for an introduction to Making a CLR stored procedure using Visual Studio