Using SQL Server as a DB queue with multiple clients

前端 未结 7 980
生来不讨喜
生来不讨喜 2020-12-04 08:06

Given a table that is acting as a queue, how can I best configure the table/queries so that multiple clients process from the queue concurrently?

For example, the ta

7条回答
  •  Happy的楠姐
    2020-12-04 08:44

    My answer here shows you how to use tables as queues... SQL Server Process Queue Race Condition

    You basically need "ROWLOCK, READPAST, UPDLOCK" hints

提交回复
热议问题