sql-server - 索引创建超时到期:SQL Server:执行超时已过期
问题描述
我正在一个 2 亿条记录的大表中创建一个新的非聚集索引
我为此使用 SSMS
但是由于此错误,该过程失败
TITLE: Microsoft SQL Server Management Studio
------------------------------
Create failed for Index 'NonClusteredIndex-20210524-224640'. (Microsoft.SqlServer.Smo)
For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=16.100.46367.54+(SMO-master-A)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Index&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated. (Microsoft SQL Server, Error: -2)
For help, click: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver--2-database-engine-error
------------------------------
The wait operation timed out
------------------------------
BUTTONS:
OK
------------------------------
我在选项中检查了超时,它是零,这意味着无限
我该如何解决这个错误?
解决方案
推荐阅读
- java - 当表格中的文本较长时,其他表格形状会变形
- asp.net-core - 在 HotChocolate.AspNetCore 中找不到方法的描述
- html - 移动设备上出现白圈问题 (CSS)
- haskell - 如何定义所有音符名称.. Cbb Cb C Cs Css .. 作为 Haskell 中的构造函数
- javascript - JavaScript RegExp 中 exec 方法返回的数组类型是什么?
- c# - 更新源时的 C# BitmapImage 源内存问题
- spring - Spring Boot 消耗 2 个 rest 并合并一些字段
- asp.net-core - post_logout_redirect_uri 为空 OpenIdConnect IdentityServer
- html - 针对移动设备将 5 列表拆分为两部分
- docker - 使用 gradle 作为构建工具为 Kotlin http4k 后端创建 Docker 映像