Solved

Script Time Out Errors with MySql Database Hosting in Window Server Environment

Posted on 2004-04-30
9
437 Views
Last Modified: 2006-11-17
I am using a shopping cart script that is in asp. I use MySQL database as the back-end. The cart and database is hosted in a Windows 2K server environment with a webhosting company.

The problem I am having is that when I do a search, the script would timed out with the ASP Error '0113' code. The only way to resolve this at the moment is to add a line of code Server.ScriptTimeout=240 in the asp page. However, by adding this line of code, although the search works, but it takes more than 5 minutes just to generate a simple one item search.

So far this is the only suggestion and solution provided by the webhosting company and from the developer of the shopping cart. As you can see this is not acceptable by anymeans for an ecommerce site!

Can anybody tell me what's causing the first problem of timing out? Is it because the webhost provider has not configure it's server correctly or is it because of the MySql database not responding very good when it's hosted in a Window server?

What is another solution in order to get this fix?

Thank you.
0
Comment
Question by:printas
9 Comments
 
LVL 3

Accepted Solution

by:
rajuare earned 100 total points
ID: 10957596
Pls refer the following links for solution,

Microsoft Knowledge Base Article - 182036
============================
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q182/0/36.ASP&NoWebContent=1

Other solutions
==========
These Microsoft articles tell you how to resolve this in NT and windows 2000.  

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q287499

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q253669
0
 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 80 total points
ID: 10958693
What is you query?
0
 

Author Comment

by:printas
ID: 10962192
Hi, I am not a tech person. I just to get my business online up as soon as possible. I do not understand all the stuff on Microsoft website.  If you can take a look at my site, and tested yourself to see what I am having problem with, maybe you can tell me whether it's the script that making things bad or it's the MySql database.

I am currious, because the developer of the shopping cart says it has to be the database server that or my webhosting provider not setting the database server properly maybe.  But then again, I would thought that MySql 4.0.2 can handle searches easily. I only have 1776 products in the database. But why it can handle such load in searching.
0
 

Author Comment

by:printas
ID: 10962283
oops...forgot to add the link to my site: http://www.printerassociates.com/cart500/
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 80 total points
ID: 10962624
Correct, your site is pretty slow...may be programming, may be host.  We can't tell without the code.

Another thing, you site is not properly design for resolution greater then 800x600.  I use 1280x1024, and the site was very distort and objects overlapped.  Probably want to have your designer/programming starightent that out!  They should know better!!!
0
 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 80 total points
ID: 10962643
Oh yeah, and the Add to Cart (Order Product) buttons should be next to each item, like most other sites, not checkboxes and 1 button at the bottom.  I was a bit confused when first saw it...but I'm just an idiot :)  But, so is everyone else...
0
 
LVL 7

Assisted Solution

by:TheKenman
TheKenman earned 70 total points
ID: 10965534
Alorentz is correct in that the site does not work well with large resolutions. Should be fairly simple to fix, if the site was designed correctly to start with.

As far as the search goes, you need to give us the code to shopsearch.asp.

**NOTE**

You should have a line (hopefully near the top where it usually is) that looks like this:

     Conn = "Driver={SQL Server};Server=myserver.com;Database=multires;Uid=myname;Pwd=mypass"

You should modify that line to put dummy values where it says "myserver.com", "myname" and "mypass".....unless you want a bad security breach.

0
 

Author Comment

by:printas
ID: 10983435
Thanks everyone for the comment. Will try to fix the design to accommodate larger screen resolutions.

About my original problem, I fixed it already.
All I needed to do was go to phpMyadmin utility and Index all the fields that shop uses for searching in the products table of the database; and removed fields that are not used for searching. That fixed it instanly!
0
 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 80 total points
ID: 10985730
We could only assume that the fields were properly indexed, and based our answers around that.

Good luck...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now