What is the equivalent for LOCK_ESCALATION = TABLE in SQL Server 2005?

拜拜、爱过 提交于 2019-12-09 07:30:35

问题


I have a script that was generated in SQL Server 2008, but I need to execute it against a SQL Server 2005 database.

What would an equivalent statement for the following be in SQL Server 2005?

ALTER TABLE dbo.Event SET (LOCK_ESCALATION = TABLE)

回答1:


LOCK_ESCALATION = TABLE is the default behavior in SQL Server 2008 & is the ONLY behaviour in SQL Server 2005.

You can safely drop the statement without any change in functionality.




回答2:


There is no equivalent option: it's new in SQL Server 2008.

You'll need to change the "Script For version" to SQL Server 2005,




回答3:


@gbn wrote
"You'll need to change the "Script For version" to SQL Server 2005"

In SQL Server Management Studio 2008 select menu Tools-Options (SQL Server Object Explorer/Scripting Page)




回答4:


In the script generation wizard set the option Script For version to SQL 2005 that should give you the right script.



来源:https://stackoverflow.com/questions/840942/what-is-the-equivalent-for-lock-escalation-table-in-sql-server-2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!