To use .NET assemblies in SQL Server, you need to enable CLR integration on the SQL server. There are some good examples in this MSDN section.
Since you have the logic already in .Net, would it be better to do all the work there? As your application grows, it will be much better for you to store all your business logic in code and use the database as a data warehouse.
source share