資料庫鏈結組態

Microsoft.SQLServer.2016.Database.Configuration.DBChaining (UnitMonitor)

監視資料庫的 [已啟用跨資料庫擁有權鏈結] 設定。附註: 預設會停用此監視器。必要時請使用覆寫加以啟用。

Knowledge Base article:

摘要

此監視檢查此資料庫的 [資料庫鏈結] 設定。由於此監視為整體標準需求的一部分,所以如果設定不符合指定的標準,便會產生警示。

組態

[資料庫鏈結] 設定是控制外部資源 (如另一個資料庫的物件) 是否能夠存取資料庫。當 [資料庫鏈結] 設定為 ON 時,資料庫可以是跨資料庫擁有權鏈結的來源或目標。

為減小安全性介面區並防範特定詐騙狀況,DB_CHAINING 應設為 OFF。請只在您確定應用程式需要它時,才設為 ON。

DB_CHAINING {ON | OFF}

原因

如果選項不符合必要的設定,便會引發警告警示。根據預設,當此設定為 "ON" 時,監視器會設定為產生警示。

解決方式

請按照下列方式解決此問題::

或者,如果此監視與這個資料庫無關::

外部資源

如需有關這項設定的詳細資訊,請參閱: ALTER ENDPOINT (Transact-SQL)

可覆寫的參數

名稱

描述

預設值

警示優先程式

定義警示優先順序。

一般

警示嚴重性

定義警示嚴重性。

警告

停用 SQL Express 檢查

這只可設定為 'true' 或 'false'。如果設定為 'true',則工作流程就不會考量 SQL Server Express 版本。

已啟用

啟用或停用該工作流程。

需要的值

資料庫組態設定需要的值。若要檢視一組適用的值,請參閱此監視的知識庫之<組態>一節。

產生警示

定義工作流程是否會產生警示。

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

43200

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2016.Database
Parent MonitorMicrosoft.SQLServer.2016.Database.ExternalAccessConfiguration
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2016.DBConfigurationStatus
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2016: 資料庫鏈結組態錯誤
電腦 "{2}" 上 SQL 執行個體 "{1}" 中資料庫 "{0}" 的 [已啟用跨資料庫擁有權鏈結] 設定,未依照最佳作法設定。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2016.Database.Configuration.DBChaining" Accessibility="Public" Enabled="false" Target="SQL2016Core!Microsoft.SQLServer.2016.Database" ParentMonitorID="Microsoft.SQLServer.2016.Database.ExternalAccessConfiguration" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2016.DBConfigurationStatus" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2016.Database.Configuration.DBChaining.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</AlertParameter2>
<AlertParameter3>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConfigurationValueOK" MonitorTypeStateID="ConfigurationValueOK" HealthState="Success"/>
<OperationalState ID="ConfigurationValueNotOK" MonitorTypeStateID="ConfigurationValueNotOK" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ConnectionString>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ConnectionString$</ConnectionString>
<DatabaseName>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</DatabaseName>
<IntervalSeconds>43200</IntervalSeconds>
<SyncTime/>
<ConfigValue>DBChaining</ConfigValue>
<ExpectedValue>OFF</ExpectedValue>
<ExcludeOnExpress>false</ExcludeOnExpress>
<SQLSKU>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/Edition$</SQLSKU>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>