문제

What is the default windows server directory where the SQL Server Agent 2012 Job log files are stored? I would like to transfer the raw log files to a group server so that an external support team can verify that the job executed without necessarily connecting to the server.

도움이 되었습니까?

해결책

I don't think there is a normal directory for job logs. Generally, they live in the msdb catalog. When you view a job's history through the GUI, you're effectively looking at something along the lines of the following:

SELECT  TOP 1000 *
FROM    msdb.dbo.sysjobs sj
INNER JOIN msdb.dbo.sysjobhistory sjs
    ON  sj.job_id = sjs.job_id;

That said, you should be able to tailor an export of this information to your liking and have your remote support work with that output.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top