繁体   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