Problem using Temporary Table in Sql Server Reporting Service

Posted on 2008-11-20
Last Modified: 2012-08-13
I am trying to create report in Sql Server Reporting Service using RepExamTypeComparison_Test stored procedure,In this stored procedure I am using temporary table.It is working fine in SQL Server but when I am using this stored procedure in creating Report(Using Sql Reporting Service),then it give me error "There is an error in the query. Invalid object name '#tres'." where #tres is temporary table.So please tell me how I'll solve this problem?I am attaching screen shot.

Question by:vikasbapat
    LVL 14

    Expert Comment

    A first test would be is to log on to SQL server as the report user. Then run the report and debug from there.  That user may need some more rights granted to them to run the report.

    LVL 8

    Accepted Solution

    Have you tried to just click the Next button and move forward? I'm not sure, but maybe its running some sort of validation on the stored procedure and its not recognizing that the table is being created in the procedure.... just a guess though.

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
    This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    794 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

    15 Experts available now in Live!

    Get 1:1 Help Now