Can you call a webservice from TSQL code?

前端 未结 9 1862
野趣味
野趣味 2020-11-29 00:39

Is there a way to call out from a TSQL stored procedure or function to a webservice?

9条回答
  •  感动是毒
    2020-11-29 00:54

    Not in T-SQL code itself, but with SQL Server 2005 and above, they've enabled the ability to write CLR stored procedures, which are essentially functions in .NET code and then expose them as stored procedures for consumption. You have most of the .NET framework at your fingertips for this, so I can see consumption of a web service possible through this.

    It is a little lengthy to discuss in detail here, but here's a link to an MSDN article on the topic.

提交回复
热议问题