SQL Server, using a table as a queue

前端 未结 5 1628
情深已故
情深已故 2021-01-02 20:34

I\'m using an SQL Server 2008 R2 as a queuing mechanism. I add items to the table, and an external service reads and processes these items. This works great, but is missing

5条回答
  •  星月不相逢
    2021-01-02 21:21

    The previous commenter that suggested using Service Broker likely had the best answer. Service Broker allows you to essentially block while waiting for more input.

    If Service Broker is overkill, you should consider a different approach to your problem. Can you provide more details of what you're trying to do?

提交回复
热议问题