CREATE CLUSTERED COLUMNSTORE INDEX CCI_TempTable1 ON dbo.TempTable1 ON[PRIMARY]
触发此查询后,我发现了错误。
Msg 823, Level 24, State 2, Line 20
The operating system returned error 1(Incorrect function.) to SQL Server during a read at
offset 0x0000018dc18000 in file 'D:\SQL2014\Data\TempDB.MDF'. Additional messages in the
SQL Server error log and system event log may provide more detail. This is a severe
system-level error condition that threatens database integrity and must be corrected
immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be
caused by many factors; for more information, see SQL Server Books Online.
按照KB2015755:如何解决 SQL Server 中的 Msg 823 错误中的步骤操作。消息 823 通常表示硬件问题:
典型的方法是使用 SQLIOSIM 对 IO 子系统施加压力并查看是否发生错误,请参阅KB231619:如何使用 SQLIOSim 实用程序模拟磁盘子系统上的 SQL Server 活动。
如果压力没有报告错误但声明继续一致地重现问题那么您应该联系产品支持。