Computer Learning Zone CLZ Access Excel Word Windows

The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.

-Stephen Hawking
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Active Server Pages Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
SQL Server Temp Tables on Web
Mubeezi Micah 
   
6 years ago
Hi Rick,

I use temp tables a lot in Access and local SQL server installations and they work 100% of the time.

However, in a REMOTE web server when using ASP, it fails many times. For example,

<%
MySQL = "SELECT * INTO #TempTableT FROM OriginalTableT  WHERE TableID <10"
Set rs = Conn.Execute (MySQL)

MySQL = "SELECT * FROM #TempTableT"
Set rs = Conn.Execute (MySQL)
%>


The first time i refresh the browser i get "Gateway Timeout". The next time it also doesn't work and it works like on the third refresh attempt.

Strangely, when i change the SQL string criteria say to TableID <5, the records returned still bear the old criteria even if i refresh the browser several times. I also tried to clear the history in vain.

How best can i use Temp Tables in ASP using web browsers to access a remote SQL server database?
Richard Rost  @Reply  
           
6 years ago
Honestly, the only real advise I can give you here is GOOD LUCK. I've worked with SQL Server installations on a variety of platforms, and they all seem to have their own attitudes and personalities. What works on my in-office SQL Server might not work all of the time on my GoDaddy-hosted web server or on AWS. It's weird! Even spacing sometimes can throw you off. Like <5 might work on some machines whereas you need to space it out as < 5 on others. I really can't tell you how to fix something like this without playing with it.
Richard Rost  @Reply  
           
6 years ago
I will say this, however... I am one of the top experts with Microsoft Access. I've been using it non-stop since it came out way back in 1992. I know Access like the back of my hand. SQL Server on the other hand is something I've only recently been seriously developing with - for about the past 5 years or so. So I'm nowhere near the expert in SQL Server as I am with Access.
Mubeezi Micah OP  @Reply  
   
6 years ago
Thank you Rick
Richard Rost  @Reply  
           
6 years ago
You're very welcome.
Mubeezi Micah OP  @Reply  
   
6 years ago
i noticed something.
when i create a temp table then do a response.redirect to another page, the temp table is available for use.
This is unlike in PHP, where you create the temp table and use it instantly on the same web page.
Richard Rost  @Reply  
           
6 years ago
Yep. ASP.NET is the same way. You can work with instances of data on the same page. Classic ASP requires you to submit to another page. That's one of the benefits of ASP.NET. I don't have a lot of PHP experience, but I suspect it's the same thing.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Active Server Pages Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 1:29:26 PM. PLT: 0s