Learning is not attained by chance, it must
be sought for with ardor and diligence.
-Abigail Adams
Home   News   Courses   Seminars   Templates   Help   TechHelp   Forums   Order   Contact   Logon  
Home > Forums > ASP
Active Server Pages Forum

Welcome to the ASP Forum. I love Classic ASP. My whole web site is built with that, Javascript, and of course HTML from scratch. Post your questions here. Feel free to ask about ASP.NET too. I'm not an expert (yet) but I can make my way around it, and yes, I'm brushing up my skills to I can prepare some ASP.NET lessons soon.

This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, you can watch ASP Beginner Level 1 for free, and then purchase Level 2 for just $1.00 here. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

Click Here to Post a comment and start a new discussion!

SQL Server Temp Tables on Web Link 
Mubeezi Micah     
4 months 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    
4 months 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    
4 months 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    
4 months ago
Thank you Rick
Richard Rost    
4 months ago
You're very welcome.
Mubeezi Micah    
4 months 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    
4 months 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.
Add a Reply

Show All Comments

Post a New Comment or Question
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

YouTube Channel    LinkedIn

Blog RSS Feed   
Keywords: asp forum active server pages  PermaLink