簡體   English   中英

嘗試在 SQL 服務器“系統找不到指定的文件”中創建或編輯作業步驟時出錯。

[英]Error when trying to create or edit a job step in SQL Server “The system cannot find the file specified.”

我在用

Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64) 
Developer Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: )

我最近做的事情是創建一個從路徑動態恢復數據庫的作業,運行它並禁用它。

之后,當我嘗試添加新步驟時,出現此錯誤:

該系統找不到指定的文件

我在 SQL 服務器日志中找不到任何錯誤。

我能夠使用 T-SQL 創建作業並能夠運行它們。

關於堆棧溢出的另一個類似問題與我的問題無關。

為什么我突然收到這個錯誤?

這是從管理工作室復制的錯誤:

該系統找不到指定的文件。

節目地點:

在 Microsoft.SqlServer.Dts.Runtime.Application.get_LogProviderInfos()
在 Microsoft.DataTransformationServices.DTSExecUI.Controls.LoggingCtrl..ctor(IDTSExecViewManager treePanel)
在 Microsoft.SqlServer.Management.SqlManagerUI.DTSJobSubSystemDefinition.InitializeControls()
在 Microsoft.SqlServer.Management.SqlManagerUI.DTSJobSubSystemDefinition..ctor(CDataContainer dataContainer,IMessageBoxProvider messageProvider)
在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepSubSystems.CreateJobStepSubSystemSsis(AgentSubSystem agentSubSystem,CDataContainer dataContainer,JobStepData 數據,IMessageBoxProvider messageProvider)
在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepSubSystems.CreateJobStepSubSystem(AgentSubSystem agentSubSystem,CDataContainer dataContainer,JobStepData 數據,IMessageBoxProvider messageProvider,IServiceProvider serviceProvider)
在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepSubSystems..ctor(CDataContainer 數據容器,JobStepData 數據,IMessageBoxProvider 消息提供者,IServiceProvider 服務提供者)
在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.get_SubSystems() 在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.FilterStepCombo(DatabaseEngineEdition engineEdition) 在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.InitializeStepCombo() 在 Microsoft.SqlServer.Management .SqlManagerUI.JobStepProperties.InitializeData() 在 Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.OnInitialization() 在 Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.SetView(Int32 索引,TreeNode 節點) 在 Microsoft.SqlServer.Management.SqlMgmt。 ViewSwitcherControlsManager.SelectCurrentNode() 在 Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.InitializeUI(ViewSwitcherTreeView treeView, ISqlControlCollection viewsHolder, Panel rightPane) 在 Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocumentColle 控制 ISqlServiceProvider 控制) 在提供程序中微軟.Sql Microsoft.SqlServer.Management.SqlManagerUI.JobSteps.OnDoubleClick(Object sender, MouseButtonDoubleClickedEventArgs args) 的 Microsoft.SqlServer.Management.UI.Grid.GridControl.OnMouseButtonDoubleClicked 的 Server.Management.SqlMgmt.LaunchForm..ctor(ISqlControlCollection 控件,IServiceProvider 提供程序) (HitTestResult htArea, Int64 nRowIndex, Int32 nColIndex, Rectangle rCellRect, MouseButtons btn, GridButtonArea headerArea) at Microsoft.SqlServer.Management.SqlManagerUI.SqlManagerUIDlgGrid.OnMouseButtonDoubleClicked (HitTestResult htArea, Int64 rowIndex, Int32 colIndex, Rectangle cellRect, MouseButtons btn, GridButtonArea headerArea) at Microsoft.SqlServer.Management.UI.Grid.GridControl.OnMouseDown(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) 在 Microsoft.S qlServer.Management.UI.Grid.GridControl.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System. Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms .UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID,Int32 原因,Int32 pvLoopData)在 System.Windows.Forms.Application .ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms .Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() 在 Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()

該系統找不到指定的文件。

節目地點:

在 Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.get_LogProviderInfos()
在 Microsoft.SqlServer.Dts.Runtime.Application.get_LogProviderInfos()

提前致謝。

原來這是SSMS的一些問題。 我只是在嘗試在另一台服務器上編輯作業步驟時才注意到它。 打開 SSMS 的新實例時,一切正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM