You can create a temporary lock in T-SQL for -for example- testing:
BEGIN TRAN SELECT 1 FROM TABLE WITH (TABLOCKX) WAITFOR DELAY '00:02:00' ROLLBACK TRAN GO
I.T. minded
You can create a temporary lock in T-SQL for -for example- testing:
BEGIN TRAN SELECT 1 FROM TABLE WITH (TABLOCKX) WAITFOR DELAY '00:02:00' ROLLBACK TRAN GO