In this video you will learn how to find Job failure cause using SQL Server management studio as well as T-SQL Script. The video shows various options for storing Job history such as storing history in a file, Table or directing the output in Application Log.
Script to Find out Error Details for SQL Server Agent Job
Script to Find out Error Details for SQL Server Agent Job
--Select * from sysjobhistory --Select * from sysjobs SELECT e.message ,j.NAME FROM sysjobhistory e INNER JOIN sysjobs J ON e.Job_id = j.job_id WHERE J.NAME LIKE '%backup%' AND e.run_date = '20150328'
How to Tet the Detail of a Job Failure in SQL Server - SQL Server DBA Tutorial
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.