Call SQLCLR from trigger or polling?

You don't say what version of SQL Server you're using, but if it's 2005 Service Broker was made for this. In your trigger, put a (short) message on the queue. Have your service execute a WAITFOR on the queue which will then trigger a RECIEVE to grab the message.

Better than spinning cycles seeing if there's nothing to do.

I, personally, would never call a web service in a trigger. I would write a service that polls the table for new data and calls the web service asynchronously.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions