Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 10th, 2003, 03:42 PM
Registered User
Join Date: Nov 2003
Location: , , .
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



Reply With Quote
  #2 (permalink)  
Old November 10th, 2003, 04:50 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

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.

Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old November 10th, 2003, 04:56 PM
Registered User
Join Date: Nov 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

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...


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:20 PM.

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