Improvement: The sp_invoke_external_rest_endpoint stored procedure is only supported in Azure SQL Database environments. If you try to use this procedure in on-premises environments, you'll receive a spurious error like the following one: Msg 2812, Level 16, State 99, Procedure sys.sp_invoke_external_rest_endpoint_internal, Line <LineNumber> [Batch Start Line <LineNumber>] Could not find stored procedure 'sp_invoke_external_rest_endpoint_internal'. The fix improves the message to read as follows: "sp_invoke_external_rest_endpoint" is not supported on this edition of SQL Server.