سؤال

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