Solved

temp table in ssis package

Posted on 2009-05-05
5
1,650 Views
Last Modified: 2013-11-10
a temp table is used in the sql query of the source in data flow of my package..if i run the package getting the error '[OLE DB Source [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Invalid object name '#Output'.". '
i tried all possible ways i knew..any help is greatly appriciated..enclosing the query also
New-Text-Document--2-.txt
0
Comment
Question by:ametuer999
  • 3
5 Comments
 
LVL 3

Expert Comment

by:mfreuden
Comment Utility
Is the step that is trying to access the #output table using a different connection that the step that creates the table?  I'm assuming that either a new connection to the database is being established and perhaps the original connection is being closed?

You could try using a global temp table with 2 pound signs such as:  ##output.

0
 

Author Comment

by:ametuer999
Comment Utility
That worked fine , but now i am getting the error '[DTS.Pipeline] Error: "output "OLE DB Source Output" (11)" contains no output columns. An asynchronous output must contain output columns. '..could you please look into this as well..Thank you..
0
 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 total points
Comment Utility
I was with same problem some time ago... And the solution for my case was I think to call a stored procedure from inside a script component as source...
Regards,
Pedro
www.pedrocgd.blogspot.com
0
 

Author Comment

by:ametuer999
Comment Utility
Thanks, i will try that and let you know...
0
 

Author Closing Comment

by:ametuer999
Comment Utility
i created a stored proc with the query and executed it in the source of dataflow task but with SET FMTONLY OFF..
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now