I have a stored procedure for SQL Server 2000 that can only execute one instance at a time. Is there a way to verify and verify that the procedure is not currently running?
Ideally, I would like the code to be autonomous and efficient (fast). I also do not want to do something like creating a global temp table that checks its existence, because if for any reason the procedure fails, it will always be considered running ...
I searched, I donβt think it was asked yet. If it was, sorry.
sql-server stored-procedures sql-server-2000
Frank v
source share