Voer dit uit en probeer daarna je insert:
select * from yourTable with (holdlock,tablockx)
Zo zet je de tabel vijf minuten op slot:
BEGIN TRANSACTION
SELECT * FROM yourTable WITH (TABLOCKX, HOLDLOCK) WHERE 0 = 1
WAITFOR DELAY '00:05'
ROLLBACK TRANSACTION
De exclusieve tabelvergrendel (TABLOCKX) zorgt ervoor dat een andere sessie niet kan schrijven, waardoor je time-outscenario goed wordt nagebootst.