Hi All,
According to my observation using SP_WHO2 in my database, some INSERT
statements are getting blocked by SELECT statements. Though the
blocking
SELECT statement is having ReadPast hint, i think, it will only read
past
locked resources but will not guarantee the select statement itself not
blocking other statements(in my case Insert). According to my knowledge
and
information, select statements take shared locks but why then these
statements are blocking insert statements?
Can there be any other solution other than using NoLock hint as this
hint
make sure no shared locks are issued but it can read uncommited data.
Need help urgently.
Thanks
Ritesh
According to my observation using SP_WHO2 in my database, some INSERT
statements are getting blocked by SELECT statements. Though the
blocking
SELECT statement is having ReadPast hint, i think, it will only read
past
locked resources but will not guarantee the select statement itself not
blocking other statements(in my case Insert). According to my knowledge
and
information, select statements take shared locks but why then these
statements are blocking insert statements?
Can there be any other solution other than using NoLock hint as this
hint
make sure no shared locks are issued but it can read uncommited data.
Need help urgently.
Thanks
Ritesh
Comment