I know that in the Oracle DB I can configure a flag, that all select queries running on a specific DB can be run as if the NOLOCK hint was added.
Is there something similar in SQL Server?
I know that in the Oracle DB I can configure a flag, that all
Share
You can set the database into READ_ONLY mode, which certainly changes some of the transaction rules, but I don’t think there’s anything closer to a global NOLOCK.
Edit
If you want to be able to perform DELETEs, INSERTs and UPDATEs, but you don’t want readers to lock or have to specify hints or isolation levels, you could also consider turning on READ_COMMITTED_SNAPSHOT, but the semantics there are again not quite the same as the NOLOCK hint.