문제

Is it possible for a SQL Stored Procedure to call a .NET object? In my situation, I need to take a string parameter and return a hashed result that can be consumed by my secure client.

I can either have this SP called on a per result basis (once per row), or I can possibly return multiple rows. It all depends on what SQL will support me doing.

도움이 되었습니까?

해결책

SQL Server 2005 introduced CLR into the server. This allows you to write .NET functions and call them from within SQL Server stored procedures.

Read this howto on how to create and use CLR within SQL Server.

This will work in SQL Server 2005 and above.

다른 팁

You can write sql stored procedure in C# by using Sql Clr which will allow to call .Net object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top