Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

假設您有一個定期排程的維護作業,以在不停止並在 Microsoft SQL Server 2014 或2016中啟動伺服器的情況下,迴圈錯誤記錄檔。

例如,維護作業可能如下所示:

USE msdb ;  
GO  

EXEC dbo.sp_cycle_agent_errorlog ;  
GO

在這種情況下,維護作業不會執行,而且您會收到如下所示的錯誤訊息:

Msg 22022、Level 16、State 1、Line line_number SQLServerAgent 錯誤:32。 程式無法存取該檔案,因為另一個處理常式正在使用該檔案

解決方案

此問題已在下列 SQL Server 累計更新中修正:

SQL Server 2017 累計更新22

SQL Server 2016 的累積更新 4 Service Pack 2

SQL Server 2014 SP3 的累積更新4

針對 SQL Server 2014 SP2 累積更新18

關於 SQL Server 組建

每個新組建的 SQL Server 都包含先前組建中的所有修復程式和安全性修正程式。 我們建議您安裝最新組建的 SQL Server:

SQL Server 2017 的最新累計更新

SQL Server 2016 的最新組建

SQL Server 2014 的最新累計更新

狀態

Microsoft 已確認本篇文章<適用於>一節所列之 Microsoft 產品確實有上述問題。

參考

瞭解 Microsoft 用於描述軟體更新的 術語

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×