What is the best approach to call web service from

2019-08-16 07:35发布

问题:

What is the best approach to call web service from azure sql(from stored procedure)? I understand that azure sql doesn't support CLR assemblies(SQLCLR).

回答1:

No, you cannot access external resources (network, file system, registry, etc) from Azure SQL Database. Neither SQLCLR nor OLE Automation stored procedures (i.e. sp_OA*) are available on that platform. Even during the year-and-a-half that Azure SQL Database supported SQLCLR (late 2014 through mid-April 2016), it was SAFE Assemblies only, and those can not do external operations.

Your only option is to handle this outside of Azure SQL Database, or use an Azure VM with SQL Server loaded on it (Express Edition is free, so you would only pay for the Azure VM itself, which might be a cost-effective option).