dbTalk Databases Forums  

DTS runs proc, very slow when run in job, not slow when same proc run in query analyzer

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS runs proc, very slow when run in job, not slow when same proc run in query analyzer in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben
 
Posts: n/a

Default DTS runs proc, very slow when run in job, not slow when same proc run in query analyzer - 11-04-2003 , 01:02 PM






Good morning, I have a stored proceedure which runs a series of other
stored proceedures to process reporting data. When I run the stored
proceedure manually through query analyzer (QA) it takes about 20
minutes, but when we create a job to run the same proc it completes
successfully, but takes 5 hours.

The proceedure looks generally like:
1. autodetermine run-date range (i.e. today - a day)
2. run another proc
3. run another proc

The proc and the job are on the same server, and the job is executed
by an admin. We run other, very similar procs in this way and those
procs complete in comperable time when run via a job as when run via
QA. This proc is not using transactions, nor excessive Begin's or
GO's.

The server has significant excess capacity, and no other jobs are
running while this job runs. We have experienced this delay every
time we run the job, and never when we run the proc directly through
QA.

Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.