How do you lock tables in SQL Server 2005, and should I even do it?

后端 未结 7 1941
醉话见心
醉话见心 2021-02-19 15:35

This one will take some explaining. What I\'ve done is create a specific custom message queue in SQL Server 2005. I have a table with messages that contain timestamps for both a

7条回答
  •  面向向阳花
    2021-02-19 16:05

    Should you really be processing things one-by-one? Shouldn't you just have SQL Server acknowledge all unacknowledged messages with todays date and return them? (all also in a transaction of course)

提交回复
热议问题