I'm not sure if this is the correct area to ask this question, quite honestly, I'm not sure how to phrase the question because I don't know if what I'm thinking is possible.
I'm trying to figure out a better way to trigger third party API calls from an on Premise SQL Server database. Currently, there is a Python script that is ran, takes information from an the SQL server, depending on the Python conditions, will hit an API endpoint. This process allows the company that I work for to add, cancel, and update a person's information at a third party vendor via their API.
I manually run the Python script. I could put this script on job scheduler, like cronjobs. Is there a way to "listen" for a certain type of update in the SQL Server, trigger the Python scripts to run a certain API call? Is it possible to cut out the Python scripts all together and just hit the API depending on the type of update that is sent to the SQL Server? Is there a SSIS package that can be used to facilitate this?
I'm a one wo-man show at a small company.
sp_execute_external_script
is likely the feature or SQL Server that'd most closely match this - learn.microsoft.com/en-us/sql/machine-learning/tutorials/… - perhaps along with ordinary database triggers?