Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

ExecuteQuery and Group By-Failed Jobs

$
0
0

Hi,

 

Am planning to get the failed jobs in particular time period  . I need to get the job name and no of times it failed.

 

I used below query can some one please correct the query

 

SELECT JobDefinition, COUNT(JobDefinition) AS OCCURENCE from Job WHERE Status IN ('K','E') GROUP BY JobDefinition HAVING(COUNT(JobDefinition)>1)

 

I will get the job name from job definition later.

 

Also please help me how get the results using ExecuteQuery

 

Thanks in advance.

Ravi


Viewing all articles
Browse latest Browse all 8338

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>