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

后端 未结 7 1850
醉话见心
醉话见心 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:12

    Read more about SQL Server Select Locking here and here. SQL Server has the ability to invoke a table lock on a select. Nothing will happen to the table during the transaction. When the transaction completes, any inserts or updates will then resolve themselves.

提交回复
热议问题