Quantcast
Channel: Welcome To TechBrothersIT
Viewing all articles
Browse latest Browse all 2002

How to Tet the Detail of a Job Failure in SQL Server - SQL Server DBA Tutorial

$
0
0
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

--Select * from sysjobhistory
--Select * from sysjobs
SELECT e.message
,j.NAME
FROM sysjobhistory e
INNERJOIN 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

Viewing all articles
Browse latest Browse all 2002

Trending Articles