Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)
like image 204
Even Mien Avatar asked May 08 '09 17:05

Even Mien


3 Answers

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.

like image 94
Nick Kavadias Avatar answered Sep 29 '22 23:09

Nick Kavadias


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,

like image 38
gbn Avatar answered Sep 29 '22 21:09

gbn


@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)

like image 37
Michael Freidgeim Avatar answered Sep 29 '22 23:09

Michael Freidgeim