So I want to push back the data that recently got inserted into my table to another server through REST API as soon as I get a new record into the SQL table. Because my client wants on the fly data updation to another server. I'm not sure what would be the best way to achieve it. I have following options, but can someone guide me what option should I opt that would fulfill my requirement.
- SQL Triggers (but how to call rest api in triggers, even if its possible then is it a good way?)
- SQL Jobs (SQL jobs are supposed to be scheduled at a specific time but I want the data to push at the same instant)
- Windows Service (when to call windows service? is it possible that I write my rest api calling code into windows service and run the service through sql triggers?)
- Console Application (during my research I got to know console application can be called through sql jobs, but how to call sql job when a new entry gets inserted into the table)
I'm quite confused as in what process will work for me and how can I use above mentioned items (or any other) together or individually in order to accomplish what I want to?
Any kind of help or suggestion would be greatly appreciated.