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

后端 未结 5 825
甜味超标
甜味超标 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:20

    yes there is a way. use what is known as SQL Server Application locks.

    EDIT: yes this also works in SQL Server 2000.

提交回复
热议问题