473,231 Members | 1,384 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,231 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 5723
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.