The index “index_name” (partition 1) on table “table_name” cannot be reorganized because page level locking is disabled



“Executing the query “ALTER INDEX [index_name] ON [dbo].[table_name] REORGANIZE WITH ( LOB_COMPACTION = ON ) ” failed with the following error: “The index “index_name” (partition 1) on table “table_name” cannot be reorganized because page level locking is disabled.”. Possible failure reasons: Problems with the query, “ResultSet” property not set correctly, parameters not set correctly, or connection not established correctly.”


You may encounter an error message when you reorganize an Index.


The reason you are getting this error is that the ALLOW_PAGE_LOCKS property of the corresponding Index is turned off.

You can run the following query to see the indexes with ALLOW_PAGE_LOCKS turned off in your database:

You can enable the ALLOW_PAGE_LOCKS property of an Index with SSMS or with T-SQL:

With SSMS: Right-click on the Index in the table, select “Properties” from the drop-down menu and select “Use page locks when accessing the index” in the Options section of the pop-up window and click OK.

With T-SQL: Run the following command for the corresponding index:

Ekrem Önsoy
Author: Ekrem Önsoy

The original article was written in Turkish by Ekrem Önsoy and translated to English by dbtut with the consent of the author. The copyright of the article belongs to the author. The author shall not be liable in any way for any defect caused by translation.

Leave a Reply

Your email address will not be published. Required fields are marked *