Lock Escalation - What's happening here?

后端 未结 3 1119
终归单人心
终归单人心 2020-12-23 12:57

While altering a table (removing a column) in SQL Server 2008, I clicked the Generate Change Script button and I noticed that the change script it generated drops the column

3条回答
  •  佛祖请我去吃肉
    2020-12-23 13:40

    You can check if you need to include the LOCK_ESCALATION statement in your script by comparing this value before and after running the main part of your script:

    SELECT lock_escalation_desc FROM sys.tables WHERE name='yourtablename'
    

    In my case, altering table to drop or add a constraint doesn't seem to modify this value.

提交回复
热议问题