SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to determine SQLAgent Job Name from Activity Monitor?


How to determine SQLAgent Job Name from Activity Monitor?

Author
Message
AVB
AVB
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5279 Visits: 847
I was reviewing activity thru the activity monitor trying to determin why my CPU is @ 99%....anyways I noticed a process with a large wait time. This process shows it was a SQL Agent JOb running however the name is in hexidecimal format so I have no idea what the actual job is.

Here is the name:

SQLAgent - TSQL JobStep (Job 0xF1CA1968020D2647B0E1D42483AA2695 : Step 1)

I've searched the titles of all my jobs (some of which use an alphanumeric name) but none match this or any part of it.

Do I need to run the DTSRun command such as:

DTSRun /~0xF1CA1968020D2647B0E1D42483AA2695 !X !C ??
Bru Medishetty
Bru Medishetty
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11286 Visits: 1950
Look in the Job Activity Monitor under SQL Server Agent node. That must show you the jobs that are running and that may help you.


Bru Medishetty

Blog -- LearnSQLWithBru

Join on Facebook Page Facebook.com\LearnSQLWithBru

Twitter -- BruMedishetty
AVB
AVB
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5279 Visits: 847
Bru,

That's where I was looking. Thanks for the reply though.
Bru Medishetty
Bru Medishetty
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11286 Visits: 1950
AVB (11/20/2009)
I was reviewing activity thru the activity monitor trying to determin why my CPU is @ 99%....anyways I noticed a process with a large wait time. This process shows it was a SQL Agent JOb running however the name is in hexidecimal format so I have no idea what the actual job is.

Here is the name:

SQLAgent - TSQL JobStep (Job 0xF1CA1968020D2647B0E1D42483AA2695 : Step 1)

I've searched the titles of all my jobs (some of which use an alphanumeric name) but none match this or any part of it.

Do I need to run the DTSRun command such as:

DTSRun /~0xF1CA1968020D2647B0E1D42483AA2695 !X !C ??


AVB (11/20/2009)
Bru,

That's where I was looking. Thanks for the reply though.


Your initial post says you are using Activity Monitor and I am suggesting you to look at the Job Activity Monitor.

Activity Monitor and Job Activity Monitor are 2 separate Monitoring tools in SSMS.


Bru Medishetty

Blog -- LearnSQLWithBru

Join on Facebook Page Facebook.com\LearnSQLWithBru

Twitter -- BruMedishetty
AVB
AVB
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5279 Visits: 847
Bru,

Yes you are correct... however there can be many jobs running at any one given time. I could see what jobs are running by using the Job Activity Monitor but I need to know the specific one that is causing the high wait time.
Joie Andrew
Joie Andrew
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13894 Visits: 2077
In the Jobs tab of Enterprise Manager or the Job Activity Monitor of SSMS, what jobs does it show actively running at the time you were experiencing the high CPU usage?

Joie Andrew
"Since 1982"
Bru Medishetty
Bru Medishetty
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11286 Visits: 1950
AVB (11/20/2009)
Bru,

Yes you are correct... however there can be many jobs running at any one given time. I could see what jobs are running by using the Job Activity Monitor but I need to know the specific one that is causing the high wait time.


Yes I agree...

I found a work around which might not be the best possible one. Currently working on it, will post here as soon as I am done.


Bru Medishetty

Blog -- LearnSQLWithBru

Join on Facebook Page Facebook.com\LearnSQLWithBru

Twitter -- BruMedishetty
Bru Medishetty
Bru Medishetty
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11286 Visits: 1950
AVB (11/20/2009)
Bru,

Yes you are correct... however there can be many jobs running at any one given time. I could see what jobs are running by using the Job Activity Monitor but I need to know the specific one that is causing the high wait time.

Hi,

Please follow the link below to my article on this topic. It would have been a huge reply, so I made an article and I am providing link below.

Find a SQL Agent Job Name based on the Activity Monitor

Edited to inlcude the new URL for the blog...


Bru Medishetty

Blog -- LearnSQLWithBru

Join on Facebook Page Facebook.com\LearnSQLWithBru

Twitter -- BruMedishetty
AVB
AVB
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5279 Visits: 847
Bru,

Interesting article and script. I am not in front of SQL again till monday however I will give this a go as soon as I can. If I get some down time this weekend I may tackle it then. Thank you. I'll post back here soon...
AVB
AVB
SSCertifiable
SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)SSCertifiable (5.3K reputation)

Group: General Forum Members
Points: 5279 Visits: 847
Bru,

I had a chance to run your script and it does work. One word of advice is you should run that procedure as soon as you see the offending Process. I waited too long the first time and I couldn't retrieve the name. However I was ready the next time around!

I'm assuming your not running SQL 2000. Is that correct? I had to edit the proc to run on 2000. You had "master.sys.sysprocesses" I had to change it to "master.dbo.sysprocesses". Aside from that it worked well.

Good work and Thanks again! Now I have to dig into your procedure to understand the inner workings.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search