此訊息表示作業系統無法開啟或關閉指定做為 BACKUP 或 RESTORE 命令之一部分的備份裝置 (磁碟、磁帶或管道)。如需備份裝置的詳細資訊,請參閱線上叢書中的<備份裝置>與<BACKUP>主題。
要採取的步驟視收到的作業系統錯誤而定。
將 BACKUP 或 RESTORE 命令中指定的路徑與檔案名稱,剪下並貼入 Windows 檔案總管。此步驟有助於確認路徑的確是有效的路徑。
如果在命令中指定了對應的磁碟機,請改為切換到 UNC,然後重試此命令。在大多數的情況下,像是 SQL Server Agent 等服務,並不知道與各別 Windows 使用者對應的磁碟機,因此服務通常無法執行含有對應的磁碟機之命令。
確認用以啟動 SQL Server 服務的 Windows 帳戶,具有存取指定之伺服器以及周遊指定路徑的權限。同時也請確認此帳戶具有開啟指定作業類型的檔案所需之權限。
如果要存取已存在的檔案,請確認該檔案未被其他處理序鎖定,且未標記為唯讀。
測試以查看問題是否僅限於此特定伺服器、路徑或檔案。
請執行硬體診斷,確認路徑中指定的媒體狀況良好。
如果作業系統錯誤傳回的只是數值而不是文字,您可以開啟命令提示字元,並將作業系統錯誤數值用作參數來執行 NET HELPMSG。在許多情況下,此操作會傳回文字,有助您找出問題所在。
名稱 | 描述 | 預設值 |
已啟用 | 啟用或停用該工作流程。 | 是 |
優先順序 | 定義警示優先順序。 | 1 |
嚴重性 | 定義警示嚴重性。 | 2 |
Target | Microsoft.SQLServer.2012.DBEngine | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 18204 | ||
Event Source | $Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2012ID='{D84B53F9-3F5C-415C-A1C0-B3DDBF667158}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Microsoft.SQLServer.SQLDefaultAccount |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2012.Backup_device_failed___Operating_system_error_1_5_Rule" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2012ID='{D84B53F9-3F5C-415C-A1C0-B3DDBF667158}';MOM2012GroupID={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>18204</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2012.Backup_device_failed___Operating_system_error_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>