I need to find a way to use with(nolock) in every SELECT I do in NHibernate.
Doesn’t matter if it’s being called with hql, Linq Queries or criteria, as long as when SELECT is performed, with(nolock) comes along!
I need to find a way to use with(nolock) in every SELECT I do
Share
Set yout database Transaction Isolation level to
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTEDNOLOCK is equivalenteto READUNCOMMITED, so you get the same effect if your connection uses that transaction isolation level.
WARNING! DANGER! READ THIS!!!
This is the best explanation I’ve ever found on NOLOCK HINT (and HINTS in general).
It’s worth reading:
SQL Server NOLOCK Hint & other poor ideas
ADDED REFERENCES:
SET TRANSACTION ISOLATION LEVEL
Adjusting Transaction Isolation Levels
Isolation Levels (OLE DB)