Detected 1 occurrence(s) of ‘waitfor delay \’\d+:\d+:\d+\”: END -- All code between the use of sp_getapplock above, -- and sp_releaseapplock below will be restricted to -- only one user at a time. -- Ten Second delay for Demonstration Purposes WAITFOR DELAY '00:00:30' -- Remove these three lines for 'Normal' use EXECUTE sp_releaseapplock @Resource = 'next_emr_number' […]
↧