473,698 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database Connection Speed Issue. I'm stumped!

tc
Hi. I have a customer who is running our .net application, multiple clients
connecting to an Access database. This ONE customer reports a great speed
degredation when more than one client is connected.

First client logs on and the system runs correctly.
Second client logs on, both connected clients now run very slowly when
retrieving data.
Third client logs on, the speed on all three clients is no degraded even
more.
Etc.

I cannot replicate this, I have 3 PC's in development conencted to the same
database, same application, and everything is fine.

Although I don't know the exact scenario the network sitution as as follows:

Server at Site A, Client 1 at Site A, Client 2 at Site B, Client 3 at Site C

Site B and C are connected by WAN to site A, while Client 1 is connected to
the server on LAN.

I can understand Site B and C running slower than you would expect by LAN,
but I don't understand why the Client at Site A becomes slower just becuase
Client B logs on.

My previous post describes the same kind of thing but in a different
configuration. Several clients log on to an Access database on a server,
all LAN, the .net code runs perfectly. As soon as an old legacy VB6 app
connects to the database all the .net clients grind to a snails pace.
Disconnect the VB6 app and the .net code starts running at full pace again.
This I can replicate in the development environment.

Anyone have any ideas at all?
Cheers.
May 3 '07 #1
1 1728

Two words:
Access database
An access db is simply a file sitting on a server. There is no RDBMS
(relational database management system) which regulates it.

Let's take an instance where you have a db.

Emp table
Dept table
EmpWorkWeek

Where Emp table has your employees of course. Let's say 10,000 emps.
Dept table has your company dept's. Lets say 200.
EmpWorkWeek is where an Emp enters his/her hours for a week. 1 row for
simplicity per emp per week. So each week gets 10,000 rows.

You want to get the following info

Select e.SSN, e.LastName , e.FirstName , d.DeptName , eww.Hours
from Emp e join Dept d on e.DeptID = d.DeptID join EmpWorkWeek eww on
e.EmpID = eww.EmpID
WHERE
e.SSN = '000-00-0000' and eww.StartDay = '1/1/1999'

A basic query. It should return 1 row.
You want to know how many hours '000-00-0000' worked on the week starting
1/1/2006.

1 row.

Because Access is NOT a true RDBMS, and its just a file, whatever computer
is using it has to do the filtering.
Back in the day , this was the Jet Engine.

So to get this row, you have to bring back

10000 X 200 X 52000
(that's if you only have 1 years of data ) (throw in a times Y, where Y is
the number of years data you have)
It ~~has to bring back all those rows, because there is NO RDBMS to do any
work for you.
So most times, its network traffic.

MS said one time that "Access can theoretically handle 255 users" (circa
1997)

Yeah right. They later said "Most likely 10-12 users at the same time".

Its not a RDBMS. Its a file. Like Excel. Like word.

Go to MSDE or Sql Express is my advice. You'll never win the Access battle.
12/16/2005
How to Install MSDE (Sql Server 2000 Desktop)
http://sholliday.spaces.live.com/blog/


"tc" <tu**@idcodewar e.co.ukwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
Hi. I have a customer who is running our .net application, multiple
clients
connecting to an Access database. This ONE customer reports a great speed
degredation when more than one client is connected.

First client logs on and the system runs correctly.
Second client logs on, both connected clients now run very slowly when
retrieving data.
Third client logs on, the speed on all three clients is no degraded even
more.
Etc.

I cannot replicate this, I have 3 PC's in development conencted to the
same
database, same application, and everything is fine.

Although I don't know the exact scenario the network sitution as as
follows:
>
Server at Site A, Client 1 at Site A, Client 2 at Site B, Client 3 at Site
C
>
Site B and C are connected by WAN to site A, while Client 1 is connected
to
the server on LAN.

I can understand Site B and C running slower than you would expect by LAN,
but I don't understand why the Client at Site A becomes slower just
becuase
Client B logs on.

My previous post describes the same kind of thing but in a different
configuration. Several clients log on to an Access database on a server,
all LAN, the .net code runs perfectly. As soon as an old legacy VB6 app
connects to the database all the .net clients grind to a snails pace.
Disconnect the VB6 app and the .net code starts running at full pace
again.
This I can replicate in the development environment.

Anyone have any ideas at all?
Cheers.


May 9 '07 #2

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

Similar topics

3
2408
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50 visitors to my Web site can access my database through my Web site at one time? Or does this mean that in my code I can only use 50 connections? and like
1
1485
by: GSK | last post by:
This one has me stumped: I am using HttpWebRequest to resolve an external URL (that outputs an XML string). It works fine on my dev machine (W2K), and used to work on my production machine (W2K3). It seems that now, for some reason, the connection cannot be established. The error logged is: The underlying connection was closed: Unable to connect to the remote server." source="System" stack="at...
7
3629
by: | last post by:
I am having trouble figuring out to call a database INSERT procedure from a simple submit form. It appears I should use the onclick event to trigger the procedure called BUT when I do this I receive this error: 'btnInsert_Click' is not a member of 'ASP.Insert_aspx'. I realise the procedure is houwsed in a sub which may be what is causing the problem, but I am stumped on how to connect the form to the .NET
6
1427
by: frizzle | last post by:
Hi group, I have a site, which content is mostly based on what it finds in a mySQL database. All queries etc. are performed by PHP. Somehow, no matter what section of the site (still in test fase) i access, either small, with little DB info, or bif with big DB info, it seems that when i haven't accessed the page in at least 5 minutes, access it again
10
12293
by: Roger Withnell | last post by:
I'm using ASP, VBScript and SQL Server. I'm also using UTF-8 character set and so my codepage is 65001 and SQL Server datatype nvarchar. I can insert unicode characters correctly into the database table using INSERT.... (field1) ...VALUES ......... (N'Characters'). How do I do this using Rs.Update viz-a-viz:
1
8334
by: Sanny | last post by:
I am using a MySql database for chat application. Every 3 seconds the database is searched for various details. I would like to know How many individual can it handle at a time. Say there are 6 users each making a call in 3 second So every second 2 connections are made to database.
9
2205
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a while (This information is just for general knowledge as I don't want anyone thinking I am trying to be dishonest with my intentions. Also, I do not portray myself as something I am not. I am a beginner.) Anyway, what the script needs to do is...
4
4687
by: Mike | last post by:
Assume i have a db connection and a datareader for that connection. Now I perform a query that retrieves 100MB of data. I know that the data reader gets 1 row at a time. However, there is a result set out there that is 100MB is size. If I close the dataReader but keep the DB connection open, will the 100MB be freed up after closing the DataReader? Can I continue reusing the same DB connection and creating and destroying datareaders...
5
2533
by: Alan Silver | last post by:
Hello, Server configuration: Windows 2003 Server SP2 SQL Server 2000 SP4 ..NET v2.0.50727 just built up a new server using the same configuration as my current one. I even used the same CDs and registration keys, so I'm certain that the two machines are as similar as they can be.
0
9157
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
9026
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...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
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...
1
3045
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
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
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.