Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2003, 03:42 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Shape + Temp Tables

I have used the Data Shape commands successuflly in the past, but am confused by this error. I am trying to create a parent/child/grandchild relationship for a report I am writing. Initially I used the same temp table names for #Hours & #Days, but changed the temp table names when I first received the error. I now have #Hours, #Hours1, and #Hours2...same for #Days. Here is the error

Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Invalid object name '#hours1'.
/dtreference/inquiry/bah-byshift.asp, line 27

PLEASE HELP!!!!


Sincerely,

BAHill
[email protected]
 
Old November 10th, 2003, 04:50 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you trying to work with temp tables thru a standard asp DB connection and making several calls? I don't believe you can do that. That may explain why it says the object is invalid.

If you are doing some complex data operations it would seem to be advantageous to wrap it up inside of a stored procedure and make a single call to it from ASP. I haven't worked with Data Shape commands so I may be wrong with this suggestion.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 10th, 2003, 04:56 PM
Registered User
 
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Typically I use 2-3 stored procedures to call the data I require. Each level of the report will be more detailed, starting with a general overview then progressing down to hourly details. Because of the nature of the query, I must use the temp table in each of the 3 queries. Each query is a parent/child/grandchild query...

Thanks,

BAHill





Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting data to Temp Dateset nixon_hi ASP.NET 2.0 Professional 1 May 1st, 2008 09:25 PM
ADO Data Shape - Filter aggregate dwperry SQL Language 0 March 31st, 2008 10:40 AM
Can't use stored procedures containing temp tables jsandee Reporting Services 1 December 20th, 2007 02:24 PM
Rotating shape in VBA (not center of shape) Piblon Excel VBA 3 April 13th, 2006 04:04 AM
Temp Tables vs. Large Table DaveGerard SQL Server ASP 0 August 4th, 2005 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.