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 7040465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:55:18+00:00 2026-05-28T01:55:18+00:00

I have a project with c# and Microsoft SQL Server, I want to populate

  • 0

I have a project with c# and Microsoft SQL Server, I want to populate my gridview with a stored procedure.

this procedure has a table declaration in it ( I need this @temptable for get some data from another database with opendatasource).

It is OK in SQL Server Management Studio but it doesn’t populate my gridview(in c# project) when my procedure has a deceleration of a @tempTable (even I don’t use it table).

how can I use @tempTable in procedure to use it in gridview?

p.s. I also tried @tmp, #tmp, ##tmp tables as well.

  • 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-28T01:55:18+00:00Added an answer on May 28, 2026 at 1:55 am

    the problem coused about type of connection. it was oledbconnetion and I changed it to sqlconnection, now I can use table variables in a stored procedure to select it in a grid

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

Sidebar

Related Questions

I have a Microsoft Project Server 2007 instance on a network server. I want
I have a project I am working on. based off a backup SQl Server
I have been working with Microsoft SQL Server since 6.5 along with other database
I am going to use SQL Server in my project, for that I want
I have the following software installed on the machine: Microsoft SQL Server Express 2005
I have a 2.4 MB XML file, an export from Microsoft Project (hey I'm
I have an existing asp.net webforms project that uses Microsoft's Enterprise DAAB for the
I have a class library project that references the version 4.1 Microsoft.Practices.Common dll. I
Microsoft Visual Studio (2005 and 2008) seems to have fun shuffling the Project IDs
We currently use SQL Server 2005 Enterprise for our fairly large application, that has

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.