如何在存储过程中调用C#函数
问题描述:
SQL Server 2005 支持 CLR,所以这意味着我们可以在后端使用 CLR,那么如何做到这一点,我在 C# 中有一些函数可以对日期时间变量进行一些复杂的操作,现在我想在 SP 中使用这些函数.首先,是否有可能做到这一点.
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.
答
是的,可以在 SQL Server 2005 数据库中使用 .NET.请注意,SQL Server 2005 支持的 .NET 版本是 2.0.
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.