473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

ASP - Access - VBSCript performance

Hello,

I am developing a simple ASP application with VBScript and Access
database. I am testing it on my Win98SE machine using Personal Web
Server. My machine is Celeron 2000 with 512Mb RAM. On the Access I
have 2 tables, each one with less then 20 rows. The problem is, that
each time my application access the database, the response is about 30
second.
My questions:
1. How can I improve response time?
2. Where should I look for a bottle necks?

Thanks,

Zalek
Nov 12 '05 #1
5 5729
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases.ms-access, Zalek
Bloom <Za********@hotmail.com> wrote:
Hello,

I am developing a simple ASP application with VBScript and Access
database. I am testing it on my Win98SE machine using Personal Web
Server. My machine is Celeron 2000 with 512Mb RAM. On the Access I
have 2 tables, each one with less then 20 rows. The problem is, that
each time my application access the database, the response is about 30
second.
My questions:
1. How can I improve response time?
2. Where should I look for a bottle necks?


That is slow even for a Celery <g>, do you have the database open in
Access at the time? It may be trying to delete the .ldb file, this can
take time if it's unable to delete it as it retries. I don't know if
the 98 PWS supports connection pooling for database objects, that
should clear the above problem as the server will keep the connection
open to the database for re-use.

If in VInterdev, just step through the server side code.
--
A)bort, R)etry, I)nfluence with large hammer.

(replace sithlord with trevor for email)
Nov 12 '05 #2
On Tue, 09 Sep 2003 23:23:58 +0100, Trevor Best <bouncer@localhost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases.ms-access, Zalek
Bloom <Za********@hotmail.com> wrote:
Hello,

I am developing a simple ASP application with VBScript and Access
database. I am testing it on my Win98SE machine using Personal Web
Server. My machine is Celeron 2000 with 512Mb RAM. On the Access I
have 2 tables, each one with less then 20 rows. The problem is, that
each time my application access the database, the response is about 30
second.
My questions:
1. How can I improve response time?
2. Where should I look for a bottle necks?


That is slow even for a Celery <g>, do you have the database open in
Access at the time? It may be trying to delete the .ldb file, this can
take time if it's unable to delete it as it retries. I don't know if
the 98 PWS supports connection pooling for database objects, that
should clear the above problem as the server will keep the connection
open to the database for re-use.

If in VInterdev, just step through the server side code.


No, I don't have Access open.
What is the .ldb file?

Zalek
Nov 12 '05 #3
Can you post your code? It would make things a little easier.
Random
On Wed, 10 Sep 2003 00:51:07 GMT, Zalek Bloom <Za********@hotmail.com>
wrote:
On Tue, 09 Sep 2003 23:23:58 +0100, Trevor Best <bouncer@localhost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases.ms-access, Zalek
Bloom <Za********@hotmail.com> wrote:
Hello,

I am developing a simple ASP application with VBScript and Access
database. I am testing it on my Win98SE machine using Personal Web
Server. My machine is Celeron 2000 with 512Mb RAM. On the Access I
have 2 tables, each one with less then 20 rows. The problem is, that
each time my application access the database, the response is about 30
second.
My questions:
1. How can I improve response time?
2. Where should I look for a bottle necks?


That is slow even for a Celery <g>, do you have the database open in
Access at the time? It may be trying to delete the .ldb file, this can
take time if it's unable to delete it as it retries. I don't know if
the 98 PWS supports connection pooling for database objects, that
should clear the above problem as the server will keep the connection
open to the database for re-use.

If in VInterdev, just step through the server side code.


No, I don't have Access open.
What is the .ldb file?

Zalek


Nov 12 '05 #4
On Wed, 10 Sep 2003 00:51:07 GMT in comp.databases.ms-access, Zalek
Bloom <Za********@hotmail.com> wrote:
What is the .ldb file?


It's the locking file created when you open the .MDB, first one in
creates it, last one out deletes it. Unfortunately everyone closing
the database will attempt to delete it, if that delete fails it
re-tries, about 15 times, this can cause a delay of a couple of
seconds or so.

--
A)bort, R)etry, I)nfluence with large hammer.

(replace sithlord with trevor for email)
Nov 12 '05 #5
On 9 Sep 2003 21:59:06 -0500, Random <Random@nwhere> wrote:
Can you post your code? It would make things a little easier.
Random
Random,

I created a few ASP pages and the response from all pages is more or
less the same - about 20 - 30 sec. This is not a real application, I
just learn to read/update Access file using SQL.
Here is example of one page (I removed non relevant code):

<% Option Explicit %>
<% Response.Buffer = true %>
<html>

<head>
<title>Show all Companies</title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta content="Microsoft FrontPage 4.0" name="GENERATOR">
</head>

<body>
<div align="left"><%
Dim Name, LegalName, Address1,Address2, City, Zip, State, Phone,
Email, Fax, URL, Error_message
Error_message = ""

Dim DataBase, Recordset, Query

On Error Resume Next

Set DataBase = Server.CreateObject("ADODB.Connection")
DataBase.Open "db1"
Dim SQLst

SQLst = "SELECT * FROM COMPANY"

Set Recordset = DataBase.Execute(SQLst)

IF Err.Number <> 0 then
Error_message = "***** Error - SQL didnt work *****"
end if

Dim CompanyName

%>

<script language="VBScript" type="text/vbscript"><!--
function ModCompany(a)
document.form1.company.value = a
document.form1.submit()
End Function

-->
</script>

</p>

<form name="Form1" method="post"
action="http://localhost/testasp/show_company_data.asp">
<input type="hidden" name="company" value=" "><table border="1"
width="100%">
<tr>
<td><%
do until Recordset.EOF
CompanyName = Recordset("CompanyName")
%>
</td>
</tr>
<tr>
<td width="16%"><% =Recordset("CompanyName") %>
</td>
<td width="16%"><input type="button" value="Modify"
onclick="ModCompany('<% =CompanyName %>')"> </td>
<td width="16%"><input type="button" value="Delete"> </td>
</tr>
<% Recordset.MoveNext
loop

DataBase.Close %>

</table>

<!--webbot bot="HTMLMarkup" startspan TAG="XBOT" --><!--webbot
bot="HTMLMarkup" endspan
-->

</form>
</div>
</body>
</html>

Thanks for your help,

Zalek


On Wed, 10 Sep 2003 00:51:07 GMT, Zalek Bloom <Za********@hotmail.com>
wrote:
On Tue, 09 Sep 2003 23:23:58 +0100, Trevor Best <bouncer@localhost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases.ms-access, Zalek
Bloom <Za********@hotmail.com> wrote:

Hello,

I am developing a simple ASP application with VBScript and Access
database. I am testing it on my Win98SE machine using Personal Web
Server. My machine is Celeron 2000 with 512Mb RAM. On the Access I
have 2 tables, each one with less then 20 rows. The problem is, that
each time my application access the database, the response is about 30
second.
My questions:
1. How can I improve response time?
2. Where should I look for a bottle necks?

That is slow even for a Celery <g>, do you have the database open in
Access at the time? It may be trying to delete the .ldb file, this can
take time if it's unable to delete it as it retries. I don't know if
the 98 PWS supports connection pooling for database objects, that
should clear the above problem as the server will keep the connection
open to the database for re-use.

If in VInterdev, just step through the server side code.


No, I don't have Access open.
What is the .ldb file?

Zalek


Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Davis | last post by:
Since ASP server scripts use VBScript by default, does it mean it is redundant to put the following in ASP page? Then when do we need to use this? In client-side VBScript? <%@...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
7
by: RCS | last post by:
Okay, a rather 'interesting' situation has arisen at a place I work: I need to convert a database from Access to something that can be used over the web. I am currently maintaining and...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
46
by: Adam Turner via AccessMonster.com | last post by:
If I had a field called "Name" in an Access table "Contact Info", and the field contained VBScript... Function Main(rstFields) Main = rstFields.Item("FirstName").Value End Function 1. How do...
3
by: Drwtsn32 | last post by:
Hi Guys, I'm ripping off all of my hair soon ;-) I'm trying to do a very simple C# form accessible from COM client like VBScript. I would like to display the form and update the form during...
1
by: blaneyj | last post by:
HELP! What I've got going here is: a)Access database (mdb) b)VBScript from ArcGIS (modelbuilder) that processes said Access database to custom Personal GeoDatabase (PGD) I want that Access...
14
by: Brian Nelson | last post by:
Sorry for the long post, I've tried so hard to solve this one but I'm just stuck! We've had a multiuser .mdb file on a network share for years. I know it's not ideal, but it's worked well from...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.