PC Review


Reply
Thread Tools Rate Thread

Displaying database results (DRW) really slow ... simple query with little data ... can't figure out why

 
 
Diana
Guest
Posts: n/a
 
      26th Apr 2007
Hi there,

I'm using FP 2003 and Access 2003 (I know, I know, but I'm required to
use Access). Recently I noticed some of my pages were timing out when
I was contacting the database. I tried a test and here's what I
found.

Database connection: System data source on webserver
Data: Table with two columns and about 15 rows

A. I created a new form with a text box where I enter a number. That
form calls query.asp which is nothing but a database results wizard
insert table with the query "SELECT * FROM "_Cost Center" WHERE Number
LIKE ::Number::" (Remember, * is just two columns.)

This page constantly times out. I.e., the script times out. I don't
want to increase the timeout because, in my opinion, this shouldn't
take 2 minutes!

B. I created a second ASP page that uses Perlscript to do the same
query and display the results instantaneously.


I've never had this problem with the Database Results Wizard before
and can't find anything wrong. Other than Perl, I don't do much
scripting. It's supposed to be a simple search, so the DRW is perfect
and easier for me than perlscripting all the text box entries, etc.

Does anyone have any idea what could be causing this?

Thanks for anything you can offer.
-Diana

 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      26th Apr 2007
The " surrounding cost structure could be breaking things. Database tables
shouldn't have spaces in their names so that could be an issue. Try
enclosing _Cost Center in brackets instead as [_Cost Center].

Also, you're using a LIKE comparison without using any wildcards. That means
it's essentially an equality. Like is best used when you're comparing
textual data and you want to match part of the data using wildcards. Try
using a simple = instead of the LIKE as that's a less costly operation for
Access.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Diana" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there,
>
> I'm using FP 2003 and Access 2003 (I know, I know, but I'm required to
> use Access). Recently I noticed some of my pages were timing out when
> I was contacting the database. I tried a test and here's what I
> found.
>
> Database connection: System data source on webserver
> Data: Table with two columns and about 15 rows
>
> A. I created a new form with a text box where I enter a number. That
> form calls query.asp which is nothing but a database results wizard
> insert table with the query "SELECT * FROM "_Cost Center" WHERE Number
> LIKE ::Number::" (Remember, * is just two columns.)
>
> This page constantly times out. I.e., the script times out. I don't
> want to increase the timeout because, in my opinion, this shouldn't
> take 2 minutes!
>
> B. I created a second ASP page that uses Perlscript to do the same
> query and display the results instantaneously.
>
>
> I've never had this problem with the Database Results Wizard before
> and can't find anything wrong. Other than Perl, I don't do much
> scripting. It's supposed to be a simple search, so the DRW is perfect
> and easier for me than perlscripting all the text box entries, etc.
>
> Does anyone have any idea what could be causing this?
>
> Thanks for anything you can offer.
> -Diana
>



 
Reply With Quote
 
Diana
Guest
Posts: n/a
 
      30th Apr 2007
Thanks, Mark. I'll give it a try.


And, ooops, I didn't realize I posted this question twice. Sheesh.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Query Question, can't figure it out bswood7 Microsoft Access Queries 2 10th Jul 2008 03:46 PM
Displaying database results really slow ... can't figure out why dragonwoman@gmail.com Microsoft Frontpage 5 30th Apr 2007 09:25 PM
Database query results page forward button displays wrong data =?Utf-8?B?cGFocHJpbnRz?= Microsoft Frontpage 0 27th Mar 2004 04:01 PM
Trying to figure out how to checkbox=true/false based upon query results... TC Microsoft Access Form Coding 2 18th Dec 2003 01:47 PM
displaying database results Mark Microsoft Frontpage 1 7th Jul 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:21 AM.