directory.
In the advanced tab under the job steps create an output file. This will
allow you to see the full description of the job execution. There is
nothing more annoying than not being able to see why a job failed.
如何设置作业输出文档:
-
In Object Explorer, connect to an instance of the Microsoft SQL Server Database Engine, and then expand that instance.
-
Expand SQL Server Agent, expand Jobs, right-click the job that contains the job step to be viewed, and click Properties.
-
In the Job Properties dialog, click the Steps page.
-
Click the job step to be viewed, and click Edit.
-
On the General page of the Job Step Properties dialog, you can view the type of job step and what it does.
-
Click the Advanced page to view the actions SQL Server Agent takes if the job step succeeds or fails, how many times the job step should be attempted, where the job step output is written, and the user the job step runs as.
查看输出文档
To view job step output
-
In the Job Step Properties dialog, click the Advanced page.
-
Depending on the version of SQL Server you are connected to, you can view either the job step output file or table as follows:
-
When you are connected to Microsoft SQL Server 2000, you can click View to view the output file in Notepad. Job steps cannot be logged to a table in SQL Server 2000.
-
When you are connected to Microsoft SQL Server 2005 or later, you can click View only when Log to table is checked. In this case, the job step output is written to the sysjobstepslogs table in the msdb database.
In SQL Server 2005 or later, the View button is disabled when job step output is written to a file. To view a job step output file, use Notepad.
-
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现