How Intended shared lock can impact inserts
Hi All,
i have gone through some blogs and find out that the Select statement (shared lock) can also block the insert and update statement. i understand that this is true and i am try to replicate this. but somehow i am not able to replicate this. can anyone please help me to replicate this issue
This is what i am trying to do
Connection 1
BEGIN TRAN
Select * from myBigTable
COMMIT
Connection 2
WHILE (1=1)
BEGIN
BEGIN TRAN
INSERT INTO MyBigTable(.....)
SELECT ......
COMMIT
END
But both are running fine. can someone guide me on replicating this issue.
Thanks Atul