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


SQL Job getting stuck at one step


SQL Job getting stuck at one step

Author
Message
Sqlsavy
Sqlsavy
SSC Eights!
SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)

Group: General Forum Members
Points: 893 Visits: 868
Hi There,

I have a SQL job with 16 steps but it is getting stuck at step 9. All that step 9 does is delete/insert around 2000 records. it usually takes under a minute to finish. And job failure is intermittent for eg : Sunday it fails and Monday to Saturday it runs fine then Sunday and Monday fails again. I don't see any blocks on the database when it is hung. And nothing has changed recently on the Server that I am aware of.

So I am not sure how to investigate this?

thanks in adavance

cheers
homebrew01
homebrew01
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12400 Visits: 9222
What do you see in the job history details for step 9 ?



Uripedes Pants
Uripedes Pants
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1207 Visits: 4519
I agree - check the job history detail for that step. SQL server is actually pretty good at putting useful messaging in there.

Gonna go out on a limb here, but I'd bet on bad data on days it fails - inserting a string that's too long or a date that won't convert, or something along those lines.
Sqlsavy
Sqlsavy
SSC Eights!
SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)SSC Eights! (893 reputation)

Group: General Forum Members
Points: 893 Visits: 868
thank you all.

History did not give enough informatiom but Indepth did show bit more about performace of the SP. And development tema is looking at it now.


Thanks again
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