因此,似乎不可能为 SQL Server 作业中的每个步骤设置超时(来自 StackExchange 的文章)。
MSDN指出你当然可以设置代理超时:
问题
我已设置完成预定作业的电子邮件通知。
是否可以自定义电子邮件内容?
设想
在调试失败的事务时,我要求 DBA 在 SQL Server 上运行跟踪。最后他给我发了一个.trc文件。
问题
我使用该fn_tracegettable()函数来访问跟踪:
select * from sys.fn_trace_gettable('C:\path\to\myTraceFile.trc', default)
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
Msg 567, Level 16, State 7, Line 1
File 'C:\path\to\myTraceFile.trc' either does not exist or is not a recognizable trace file. Or there was an error opening the file.
Run Code Online (Sandbox Code Playgroud)
事实
fn_tracegettable在我的本地机器上运行。