ExecuteSQL Task is Never Ending
Executing the StoredProcedure with ExecuteSQL task in debug mode is never ending, but when executing same SP directly from sql (Management Studio) completes in less than 3min. Please suggest what could be my mistake.
May 16th, 2011 1:18pm

what is your connection type?http://www.rad.pasfu.com
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 1:19pm

OLE DB
May 16th, 2011 1:24pm

Are you running this SP off your local PC? It could be that this SP is buffering into your PC which in turn is a less than optimal machine in terms of resources, memory in particular. Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 1:28pm

I am not running it from local machine. Actually running SSIS package on a server.
May 16th, 2011 1:36pm

did you tried to execute it out of BIDS? with DTEXEC or DTEXECUI ? what was result?http://www.rad.pasfu.com
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 1:38pm

Because of access restrictions I can't run using DTEXEC. Tried executing other SP's from same Package and ran successfully. Is there any property I am missing for Execute SQL Task.
May 16th, 2011 1:52pm

Maybe this is debugging environment issue, that was the reason that I asked to use DTEXEC or DTEXECUI. what is the result at all? does the stored procedure executed successfully? do you have other tasks after execute sql task? how much times you waits to finish the package ?http://www.rad.pasfu.com
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 1:59pm

I understand as debugging env issue, but why does one specific sp never complete. There is no result set returning from SP. Just executing some insert statements using cursor in SP. There are other tasks after SQL task which never get to run because Exec SQL task takes forever. I stopped debugging after 8hrs. (SP from direct sql took less than 3min)
May 16th, 2011 2:51pm

I understand as debugging env issue, but why does one specific sp never complete. There is no result set returning from SP. Just executing some insert statements using cursor in SP. There are other tasks after SQL task which never get to run because Exec SQL task takes forever. I stopped debugging after 8hrs. (SP from direct sql took less than 3min) Cursors are evil. I guess you use SQL Agent to run the package and the Agent is an async process, thus combined with this cursor it messes with the memory [threads] up. Revise your SP to not use the cursor. You will gain in speed and reliability.Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 2:58pm

I know Cursors are evil but these SP's are third party application upgrade scripts on which I have no control to modify. Need to run with out any changes.
May 16th, 2011 3:23pm

I know Cursors are evil but these SP's are third party application upgrade scripts on which I have no control to modify. Need to run with out any changes. this SP will reduce your performance awfully, it is better to change SP in my view also. http://www.rad.pasfu.com
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 3:30pm

Your other option will be then running outside the SQL Agent Arthur My Blog
May 16th, 2011 3:33pm

Wonder if this is related to the security role that is used to execute the package. Not so sure, but it might worth a check.Daniel Cai | http://danielcai.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 6:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics