Hi all,I am not sure if this is normal, i tried googling but have never found a similar thread in which a SELECT is block by an INSERT.Please see my use case below ->[quote][b]Session 1[/b]select user_name(), db_name(), schema_name();testdbuser, testdb, testschemaset implicit_transactions onselect @@OPTIONS & 2 -- show 2.insert into testtab values ('j');select * from testtab -- see 'j' row there[/quote]-- did not commit or rollback yet.[b]Session 2[/b]-- login using sa account.[quote]use testdb;select user_name(), db_name(), schema_name(); dbo, testdb, dboselect * from testdb.testschema.testtab; -- [b]wait indefinitely until Session 1 commit or rollback[/b] [/quote]Why is the 2nd session SELECT being BLOCK by the uncommitted insert ? Is this the normal behavior for SQL SERVER when implicit_transactions is on ?p.s. My isolation level is set as READ COMMITTED.Regards,Noob
↧