Microsoft
Software
Hardware
Network
Question : ASP.NET: "Invalid object name" in GridView SqlDataSource
Hi
I have an ASP.NET web page (written in C#), where I have a GridView and a SqlDataSource, which I want to show in the GridView.
The SqlDataSource gets its data from a Stored Procedure (which works), and when I do a test query with the SqlDataSource, I get the data I should. However, when I select the SqlDataSource as the data source for the GridView and selects "Refresh schema", I get an error saying
"Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand properties are valid. Invalid object name '#tempo'"
, where #tempo is a temporary table I select data from in my Stored Procedure.
Since it fails on something inside the Stored Procedure, I assume that the ConnectionString is correct. Does anyone have a solution to this??
If anyone needs to see any code, let me know.
Thanks in advance.
Søren Augustesen
Answer : ASP.NET: "Invalid object name" in GridView SqlDataSource
The problem is that temp tables has no schemas for the gridview, you have to do this manually
Random Solutions
Can't access Exchange 2003 OWA from Internet
Windows 2008 Server Domain isues
Anyone get Quickbooks errors in the Windows App log but not the program? Intuit says normal
Vlookup Excel 2007
SSAS 2008 MDX All Member Before Current Member
css positioning for image caption - image height changes but container is absolute
What is the Best Digital Camera, that is tiny, takes video and takes great pictures?
Vista DLLHOST.EXE Popup
How to configure two types of update timings for VSE 8.7i via EPO server?
Designing Luns and datastores