Aaron Bertrand fires off a message:
In an earlier tip, A history of accessing REST APIs and web pages from SQL Server, I talked about reaching out to external endpoints from SQL Server, including the new sys.sp_invoke_external_rest_endpoint procedure that hit the on-premises editions in SQL Server 2025. This seemed like an ideal use case to enhance our current solution for sending a message to Slack: using
xp_cmdshellto call a PowerShell script that callsInvoke-RestMethod. In this tip, I’ll describe how we changed our implementation and why it is a marked improvement for us.
When I did this same thing, I ended up using CLR, as the customer I did it for used SQL Server on Azure VMs and not Azure SQL Database.