473,480 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

OLE DB Connections

I'm trying to optimize a vb.net connection to an Access 2003 backend.
The db is installed on a mapped network drive. There will be 5
concurrent users, however the performance issue happens regardless of
the number of users. We are using an oledb connection to connect to
the db. I've run the performance analyzer on the db and can not find
anything that needs to be done in the db itself. The Jet update has
been installed on the client and the server. The connection to the db
is opened and closed each time a sql statement is run. I've also
added the string OLE DB Services=-4; to the connection string used to
open the connection.

The performance issue is severe, taking 3 seconds to retrieve a single
record from the db which is selected using an indexed field. I've
researched msdn and googled this extensively but can not find anything
that helps. The issue is the same when the application and database
are installed on a completely different network, so that would tend to
rule out any network traffic issues.

Can anyone point me in the right direction or provide some insight as
to what's causing the performance issue?

Thanks in Advance,

Corey
Nov 13 '05 #1
2 1930
On 14 Jan 2005 12:55:47 -0800, ch*****@telus.net (Corey Henschel)
wrote:
I'm trying to optimize a vb.net connection to an Access 2003 backend.
The db is installed on a mapped network drive. There will be 5
concurrent users, however the performance issue happens regardless of
the number of users. We are using an oledb connection to connect to
the db. I've run the performance analyzer on the db and can not find
anything that needs to be done in the db itself. The Jet update has
been installed on the client and the server. The connection to the db
is opened and closed each time a sql statement is run. I've also
added the string OLE DB Services=-4; to the connection string used to
open the connection.

The performance issue is severe, taking 3 seconds to retrieve a single
record from the db which is selected using an indexed field. I've
researched msdn and googled this extensively but can not find anything
that helps. The issue is the same when the application and database
are installed on a completely different network, so that would tend to
rule out any network traffic issues.

Can anyone point me in the right direction or provide some insight as
to what's causing the performance issue?

Thanks in Advance,

Corey


Hi
I should start by keeping an open connection or taking one from a pool
David
Nov 13 '05 #2
When using JET as a backend, it is recommended to open at least one table,
and keep it open for the life of the session. Tremendous overhead in
opening especially the Lock MDB over a network. You might open a small(1
record) table at the beginning of your session that you never close until
the app is closed. This should speed things up quite a bit.

For more info, look at Tony Toews http://www.granite.ab.ca/accsmstr.htm,
Another good reference is The Access Developer Handbook (whatever version of
Access you have).

HTH
Ruben B

"Corey Henschel" <ch*****@telus.net> wrote in message
news:4d**************************@posting.google.c om...
I'm trying to optimize a vb.net connection to an Access 2003 backend.
The db is installed on a mapped network drive. There will be 5
concurrent users, however the performance issue happens regardless of
the number of users. We are using an oledb connection to connect to
the db. I've run the performance analyzer on the db and can not find
anything that needs to be done in the db itself. The Jet update has
been installed on the client and the server. The connection to the db
is opened and closed each time a sql statement is run. I've also
added the string OLE DB Services=-4; to the connection string used to
open the connection.

The performance issue is severe, taking 3 seconds to retrieve a single
record from the db which is selected using an indexed field. I've
researched msdn and googled this extensively but can not find anything
that helps. The issue is the same when the application and database
are installed on a completely different network, so that would tend to
rule out any network traffic issues.

Can anyone point me in the right direction or provide some insight as
to what's causing the performance issue?

Thanks in Advance,

Corey

Nov 13 '05 #3

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

Similar topics

3
2773
by: Randell D. | last post by:
Folks, I currently connect to my db with PHP code that uses non-persistent connections. I've read that persistent connections can help performance since a connection to the db will use an...
3
2395
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...
4
4151
by: Angelos | last post by:
I get this error mysql_pconnect Too many connections ... every now and then. Does anyone knows where it comes from ? There are a lot of sites running on the server and all of them use the...
1
2554
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and...
2
2113
by: Bob | last post by:
We have a production web site that's data intensive (save user input to DB and query for displaying) with the ASP.NET app part on one W2K server and SQL 2000 DB on another W2K server. I have set...
17
8410
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're...
4
6049
by: elyob | last post by:
Not really tried going two ways at once, but I have an include_once connection to a mysql_database, now I need to retrieve info from a second mysql_database .. My mysql_connects are getting...
1
13664
by: marcfischman | last post by:
Please help. I have a website running on a linux/apache/mysql/php server. I receive about 8,000-10,000 visitors a day with about 200,000 to 300,000 page views. The server is a RedHat Linux...
13
1742
by: PRP | last post by:
Hi, Our DBA has complained about the large number of connections from the aspnet_wp process. We have multiple web applications deployed in different virtual directories. I read that the way...
5
3362
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
0
7046
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,...
0
7088
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...
1
6741
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...
0
5342
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
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...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.