473,672 Members | 3,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5751
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases. ms-access, Zalek
Bloom <Za********@hot mail.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@localh ost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases. ms-access, Zalek
Bloom <Za********@hot mail.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********@hot mail.com>
wrote:
On Tue, 09 Sep 2003 23:23:58 +0100, Trevor Best <bouncer@localh ost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases. ms-access, Zalek
Bloom <Za********@hot mail.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********@hot mail.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@nwher e> 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="Micros oft FrontPage 4.0" name="GENERATOR ">
</head>

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

Dim DataBase, Recordset, Query

On Error Resume Next

Set DataBase = Server.CreateOb ject("ADODB.Con nection")
DataBase.Open "db1"
Dim SQLst

SQLst = "SELECT * FROM COMPANY"

Set Recordset = DataBase.Execut e(SQLst)

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

Dim CompanyName

%>

<script language="VBScr ipt" 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_da ta.asp">
<input type="hidden" name="company" value=" "><table border="1"
width="100%">
<tr>
<td><%
do until Recordset.EOF
CompanyName = Recordset("Comp anyName")
%>
</td>
</tr>
<tr>
<td width="16%"><% =Recordset("Com panyName") %>
</td>
<td width="16%"><in put type="button" value="Modify"
onclick="ModCom pany('<% =CompanyName %>')"> </td>
<td width="16%"><in put type="button" value="Delete"> </td>
</tr>
<% Recordset.MoveN ext
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********@hot mail.com>
wrote:
On Tue, 09 Sep 2003 23:23:58 +0100, Trevor Best <bouncer@localh ost>
wrote:
On Tue, 09 Sep 2003 20:46:49 GMT in comp.databases. ms-access, Zalek
Bloom <Za********@hot mail.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
27029
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? <%@ Language="VBScript" %> Thanks! John
16
9344
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 times it returns VarType() is vbEmpty. This is driving me mad! Also, does anyone know what the properties and methods are for the object returned by GetRef()? TIA.
7
8685
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 developing a mid-sized Access database (60 tables, 25 simultaneous users). Although I've been tossing up if I should try to convert the back end to SQL server (We have a license), the performance has been good enough that it always seemed a waste of time,...
11
6587
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
9
3308
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 >people moving from power user to developer, but now I suggest you browse >it, >too. It strongly emphasizes ADO, which knowledgeable Microsoft insiders no >longer recommend, and the Access ADP client to SQL Server. He writes well, >and is a good...
46
3835
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 I pass a recordset into this field? 2. How do I capture the return value?
3
2970
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 the intepretation of the vbscript. Does anyone know of any good example that could point me to the right direction.
1
5293
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 should be able to run the VBScript internally, and I've added the code into a module. Am I taking the wrong path? Am I
14
9434
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 Access 2000 to 2003. Ever since we upgraded to 2007, we've noticed some serious bloating. When we were on 2003, after a fresh compact, the database would be at about 20 MB. After normal use it would grow to about 25 MB and then significantly...
0
8503
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8945
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
4239
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2836
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2092
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1836
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.