Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS OLE DB Source - Query is fast but procedure lasts forever

$
0
0

Hi everyone!

I have a simple package: one OLE DB Source and one OLE DB Destination.

An interesting problem happened - when I execute query in OLE DB Source component it executes and fills the table in 5 minutes. When I create the stored procedure from that same query and call exec proc_name, it's not working and is stucked in "Pre-Execute phase is beginning." for 1, 2,...5 hours!

So far I've tried following:

  • delete / recreate the procedure
  • create procedure with new name
  • DBCC FREEPROCCACHE on database where procedure is created (procedure queries the data from 3 databases)
  • SET FMTONLY OFF at the beginning of the procedure and also before calling the procedure (before exec proc_name)
  • grant execute on the procedure 

and nothing works for me. Does anyone has a clue what could be the problem? Is there any way to trace what is going on and why is this happening?

Thanks in advance,

Miljan


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>