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

前端 未结 3 500
粉色の甜心
粉色の甜心 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:06

    As far as I am aware, NOLOCK is not default for the SELECT statements. You need to specify specifically if you want to use NOLOCK with SELECT.

    0 讨论(0)
  • 2020-12-21 15:21

    See the duplicate

    NOLOCK is not the default and can not be set as such. The SQL Authority link is plainly wrong.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题