Is NOLOCK the default for SELECT statements in SQL Server 2005?

前端 未结 3 509
粉色の甜心
粉色の甜心 2020-12-21 14:28

I have only SQL Server 2008R2 installed though I need to communicate with customers having 2005.

[1] tells:

  • \"NOLOCK

    T

3条回答
  •  轮回少年
    2020-12-21 15:24

    Nope, as far as I know ROWLOCK is the default for SELECT statements in NORMAL cicumstances. Use something like SQL profiler to confirm it. Obviously various other circumstances will change the default locking strategy like whether you are in recovery mode and isolations levels etc etc.

提交回复
热议问题