0

I have a database which is used just for reporting. Various users access this Database .

all of these users have only Read only access.

So I have only read only access for this database.

Should i use NOLOCK for these ? Is It help full for read only access user ?

rohit patil
  • 159
  • 2
  • 9

1 Answers1

0

This has been covered many many times, TLDR: I wouldn't use it atall. The only scenarios is if you want for example a really rough row count ballpark figure of a massive table and don't care if it is slightly wrong, but even still - you should prefer creating good indexes, adding RAM or changing the Isolation Level of the query/server.

Resources and suggestions for alternatives:

https://www.brentozar.com/archive/2016/12/nolock-ever-right-choice/

Is the NOLOCK (Sql Server hint) bad practice?

https://blogs.sentryone.com/aaronbertrand/bad-habits-nolock-everywhere/

https://dba.stackexchange.com/questions/10655/is-nolock-always-bad

Milney
  • 6,253
  • 2
  • 19
  • 33