Short and simple post \u2013 filed under \u201cJoe \u2013 you\u2019ve already forgotten about this twice, so write this down somewhere.\u201d <\/p>\n
Let\u2019s say you have deadlock output that shows the following information for the \u201cclientapp\u201d attribute:<\/p>\n
\nclientapp=SQLAgent – TSQL JobStep (Job 0xB813B96C59E6004CA8CD542D8A431A2E : Step 1) <\/p>\n<\/blockquote>\n
Based on this output, we know a SQL Server Agent Job is involved, but what is the SQL Server Agent Job name?<\/p>\n
Tested on SQL Server 2012 SP1, I can find it with the following query:<\/p>\n
\nSELECT [job_id] ,
[name]
FROM [msdb].[dbo].[sysjobs]
WHERE [job_id] = 0xB813B96C59E6004CA8CD542D8A431A2E;
GO<\/p>\n<\/blockquote>\nI\u2019ve forgotten about this twice over time because the job_id uses a uniqueidentifier data type (in this example, the job_id value is 6CB913B8-E659-4C00-A8CD-542D8A431A2E). And as an aside, the query execution plan shows a CONVERT_IMPLICIT as I would expect and uses a Clustered Index Seek.<\/p>\n","protected":false},"excerpt":{"rendered":"
Short and simple post \u2013 filed under \u201cJoe \u2013 you\u2019ve already forgotten about this twice, so write this down somewhere.\u201d Let\u2019s say you have deadlock output that shows the following information for the \u201cclientapp\u201d attribute: clientapp=SQLAgent – TSQL JobStep (Job 0xB813B96C59E6004CA8CD542D8A431A2E : Step 1) Based on this output, we know a SQL Server Agent Job […]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-deadlocking"],"yoast_head":"\n
Finding a Deadlocked SQL Server Agent Job Name - Joe Sack<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n