Solved

temp table in ssis package

Posted on 2009-05-05
5
1,653 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
ID: 24310179
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
ID: 24310545
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
ID: 24317033
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
ID: 24319146
Thanks, i will try that and let you know...
0
 

Author Closing Comment

by:ametuer999
ID: 31578247
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

943 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

4 Experts available now in Live!

Get 1:1 Help Now