Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Job getting stuck at one step Expand / Collapse
Author
Message
Posted Tuesday, February 12, 2013 3:14 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, September 9, 2014 8:11 AM
Points: 232, Visits: 818
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
Post #1418828
Posted Tuesday, February 12, 2013 8:55 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 1:06 PM
Points: 2,829, Visits: 8,479
What do you see in the job history details for step 9 ?


Post #1419018
Posted Wednesday, February 13, 2013 10:14 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Monday, April 7, 2014 11:41 AM
Points: 703, Visits: 4,519

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.
Post #1419642
Posted Thursday, February 14, 2013 3:31 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, September 9, 2014 8:11 AM
Points: 232, Visits: 818
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
Post #1419926
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse