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 takes too much time to execute Expand / Collapse
Author
Message
Posted Wednesday, January 8, 2014 11:52 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Saturday, May 3, 2014 10:13 PM
Points: 20, Visits: 56
Hi,
I created one job, when execute it it takes around 9 hours and when i manually executes that sp which is used in job than only takes 1 min.

So why this happens ?

Please reply. it will be helpful,

Thanks in advanced.
Post #1529211
Posted Thursday, January 9, 2014 5:01 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Friday, July 25, 2014 3:27 AM
Points: 90, Visits: 327
read something about parameter sniffing.
put your code if its possible
Post #1529291
Posted Thursday, January 9, 2014 6:29 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 4:15 AM
Points: 2,232, Visits: 2,672
Is this problem reproducable? Does it occur when the job is scheduled to run at a different moment? Are other processes running at the same moment (could cause blocking issues)?


** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
Post #1529313
Posted Thursday, January 9, 2014 10:12 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, July 25, 2014 7:19 AM
Points: 1,113, Visits: 6,440
What time does the job run and what time are you testing your code?

Is anything else running when the job runs (scheduled)?
Post #1529444
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse