Prevent a Stored Procedure from being executed twice at the same time

后端 未结 5 819
甜味超标
甜味超标 2021-01-02 17:10

I have a stored procedure for SQL Server 2000 that can only have a single instance being executed at any given moment. Is there any way to check and ensure that the procedur

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-02 17:36

    how about locking a dummy table? That wouldn't cause deadlocks in case of failures.

提交回复
热议问题