Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to hit web API web method each time any records get inserted/updated in MS SQL server table??

Can i use Signal R concept?? If yes

Any simple C# example would be appreciated.

Thanks!

What I have tried:

C#
i want to hit web API web method everytime records get inserted/updated in MS SQL server table??

Can i use Signal R concept?? 
Posted
Updated 22-Dec-16 2:19am
Comments
Simon_Whale 22-Dec-16 11:39am    
Can you describe your issue a bit more here as I don't think SignalR is the direction you want with what information you have specified here

1 solution

do have a data access layer that is used as a single entry point to db?
maybe you can put your api call there.

or you can use a trigger to call api, but this is not recommended
sql server 2005 - Can a SQL trigger call a web service? - Stack Overflow[^]
 
Share this answer
 
Comments
[no name] 22-Dec-16 8:28am    
The issue is that the table(s) can be updated from multiple sources. Do you have any idea about Signal R automating this process.
[no name] 12-Jan-17 10:16am    
Signal R is "library" bi-directional communication between server and client. Used when you have to push data/events to client instead of client ask server for updates.
I'm sure that you have some custom code behind Signal R that do the update/insert in DB. That part of code you need to find and change.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900