How to use Stored Procedure (containing temp tables) in OLE DB Source Task


i have stored procedure queries several tables server a.  result set proc inserted sql server table on server b.

i'd use stored procedure in ole db source task when throws error because tries validate temp tables (used in stored procedure) exist before created.

i have tired setting delayvalidation=true on tasks , retainsameconnection=true on connection.  still error when trying click on columns.  error complains temp table referenced in stored procedure.

any suggestions?

 

 

hi,

where did create temp table, in stored procedure or task? if in sp, should work. if create temp table in task, have ensure processes in same session. possible create , use temp table in same sp? or can refer workaround script componen:

http://social.msdn.microsoft.com/forums/en-us/sqlintegrationservices/thread/3abf19b0-6623-4d41-a19a-98c0ec257cff

 

hope helps,

raymond


raymond li - msft


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........