Tampaknya mengatur grup fileg untuk read_only
mencegah dbcc checkdb
seluruh database jika grup fileg berisi indeks toko kolom. Ketika mencoba menjalankan checkdb
atau checkfilegroup
( untuk setiap grup file dalam database, termasuk sekunder baca-tulis dan[PRIMARY]
), kesalahan di bawah ini dikembalikan ...
Msg 8921, Level 16, State 1, Line 24
Check terminated. A failure was detected while collecting facts.
Possibly tempdb out of space or a system table is inconsistent. Check previous errors.
Apakah ada metode yang didukung untuk memiliki data toko kolom di grup-baca read-only? Atau apakah saya dilarang melakukan pemeriksaan integritas dalam skenario ini?
Repro
create database check_fg_ro
go
use check_fg_ro
go
exec sp_changedbowner 'sa';
go
alter database check_fg_ro add filegroup check_fg_ro_2;
alter database check_fg_ro
add file (
name='check_fg_ro_2'
,filename='C:\check_fg_ro_2.ndf'
) to filegroup check_fg_ro_2;
go
create table foo (
i int not null primary key
) on check_fg_ro_2;
go
create columnstore index ccix_foo on foo(i);
go
use master
go
alter database check_fg_ro modify filegroup check_fg_ro_2 read_only;
go
dbcc checkdb( check_fg_ro ) with no_infomsgs, all_errormsgs, extended_logical_checks;
/*
Msg 8921, Level 16, State 1, Line 24
Check terminated. A failure was detected while collecting facts.
Possibly tempdb out of space or a system table is inconsistent. Check previous errors.
*/
go
Penafian: posting silang ke forum-forum teknologi
sumber