MSSQL 数据库 buildindex 出错
Posted lijavasy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MSSQL 数据库 buildindex 出错相关的知识,希望对你有一定的参考价值。
错误1:
Executing the query "ALTER INDEX [IX_liveConfigState_Service_ServiceId_..." failed with the following error: "The index "IX_liveConfigState_Service_ServiceId_GroupRightsVersion" on table "liveConfigState_Service" 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.
解决方案:
Query the indexes and tables list with follow query, then enable their(index) page lock setting from property setting dialog.
SELECT OBJECT_NAME(i.object_id) as TableName ,
name as IndexName ,
allow_page_locks
FROM sys.indexes as i
WHERE ALLOW_PAGE_LOCKS = 0
正常应该只有如下三条记录:
reference page:
以上是关于MSSQL 数据库 buildindex 出错的主要内容,如果未能解决你的问题,请参考以下文章
使用Spring Reactive(R2DBC)与MSSQL连接,创建bean时出错