在 sys.Filegroups 中找不到資料庫的檔案群組識別碼

Microsoft.SQLServer.2005.Could_not_find_filegroup_ID_in_sys.filegroups_for_database_5_Rule (Rule)

Knowledge Base article:

原因

資料表的中繼資料所含資料行識別碼大於資料表中用過的最大資料行識別碼。如果資料表是系統資料表,這就屬於嚴重錯誤,因為中繼資料損毀時,無法繼續檢查。

解決方式

硬體失敗

請執行硬體診斷,並更正所有發現的問題。另請查看 Microsoft Windows NT 系統與應用程式記錄檔,以及 SQL Server 錯誤記錄檔,以判斷是否因硬體故障而導致此錯誤。請修正所有硬體相關問題。

若有持續發生的資料損毀問題,請嘗試抽換不同的硬體元件以隔離問題。檢查以確定您的系統未在磁碟控制卡上啟用寫入快取。如果懷疑此原因造成問題,請連絡硬體廠商。

最後您可能會發現切換至全新硬體系統會很有幫助,包括重新格式化磁碟機,以及重新安裝作業系統。

從備份還原

如果問題與硬體無關,而且確定有未受影響的備份可以使用,請利用該備份來還原資料庫。

DBCC CHECKDB

如果沒有完好的備份可用,請執行不含修復子句的 DBCC CHECKDB,以確定損毀程度。DBCC CHECKDB 將會建議要使用的修復子句。然後,執行含有適當修復子句的 DBCC CHECKDB 來修復損毀。

注意: 如果您不確定 DBCC CHECKDB 及 repair 子句對您的資料有什麼效果,請先連絡主要支援提供者再執行此陳述式。

如果執行含有其中一種修復子句的 DBCC CHECKDB 仍無法更正問題,請連絡您的主要支援提供者。

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

優先順序

定義警示優先順序。

1

嚴重性

定義警示嚴重性。

1

Element properties:

TargetMicrosoft.SQLServer.2005.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID8932
Event Source$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
在 sys.Filegroups 中找不到資料庫的檔案群組識別碼
{0}
Event LogApplication
CommentMom2005ID='{880D7274-A91C-4952-BBED-064772D118C7}';MOM2005GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2005.Could_not_find_filegroup_ID_in_sys.filegroups_for_database_5_Rule" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2005ID='{880D7274-A91C-4952-BBED-064772D118C7}';MOM2005GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>8932</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2005.Could_not_find_filegroup_ID_in_sys.filegroups_for_database_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>