Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6703533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:10:57+00:00 2026-05-26T07:10:57+00:00

I have a project using ASP.Net MVC 3 and now I’m creating a report

  • 0

I have a project using ASP.Net MVC 3 and now I’m creating a report for my project. I have several reports in my project and all of them are using stored procedures. For creating a report in MVC 3, first I create a new dataset. I have trouble with one of my reports. I have a procedure like this (named SP_Rpt) :

CREATE TABLE #temp_batch (batch_id VARCHAR(20))  
EXEC SP_StrListToTable @batchId, ',', #temp_batch

select Batch_Id, Batch_Date
from Batch 
where Batch_Id in (select * from #temp_batch)
and isnull(Payment_Decline_Date,'') = '' and Payment_Amount > 0
and Batch_Open = 0 and Invoice_Paid_Amt > 0

when I try to add new table adapter using SP_Rpt I get this error:

The wizard detected the following problems when configuring the TableAdapter: “SP_Rpt”

Details:

Generate SELECT statement invalid object name ‘#temp_batch’

To add These components to your dataset, click Finish.

I click finish and there’s no column in my table adapter. But I can to preview data. And when I create Report and choose that dataset, I don’t have any column (I can’t design new report). Is there something wrong with my procedure (I don’t think so, because I can preview data) ? How to list column in my data set using that stored procedure ?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:10:57+00:00Added an answer on May 26, 2026 at 7:10 am

    Put the following at the beginning of the stored procedure:

    IF 1=0 BEGIN
        SET FMTONLY OFF
    END
    

    Retrieve fields schema in Visual Studio of stored procedure which uses temp tables

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am in the start up of a project using ASP.NET MVC and have
I'm asp.net mvc for my project and now I have to show a couple
I have been using telerik extensions for an asp.net mvc project, more specifically the
I have a web project using asp.net mvc3. Now clients ask for a security
I have an ASP.NET MVC 3 project that I just created using the project
I have an ASP.Net project using AJAX that I am putting on a server
I am using ASP.NET Dynamic Data for a project and I have a table
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works
In visual studio, I have an asp.net 3.5 project that is using MS Enterprise
I'm using asp.NET MVC 2 for my current project and I need to validate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.