473,386 Members | 1,883 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,386 software developers and data experts.

ODBC Database Connection Woes in ASP .NET

This problem has had me stuck for weeks now...

I have an ASP .NET application on a machine running Windows 2000
Server.
It connects to an ODBC data source using the ODBC Data Provider.
The connection takes about 5 seconds to create.
It takes 5 seconds whether I load the application locally on the
server's browser, or across the network from a client PC.

A Windows Forms application on the same server, creates the same
connection in 0.7 seconds.

The same ASP .NET application installed on a low spec development
machine running Windows 2000 Professional (or Windows XP Pro), opens
the connection in 0.7 seconds.

Please, please tell me if you have seen this before and give me some
ideas.
I've tried everything!

Thanks In Advance
James
Jul 21 '05 #1
1 3035
On 30 Sep 2003 05:44:56 -0700, jb*********@hotmail.com (James Brown) wrote:

¤ This problem has had me stuck for weeks now...
¤
¤ I have an ASP .NET application on a machine running Windows 2000
¤ Server.
¤ It connects to an ODBC data source using the ODBC Data Provider.
¤ The connection takes about 5 seconds to create.
¤ It takes 5 seconds whether I load the application locally on the
¤ server's browser, or across the network from a client PC.
¤
¤ A Windows Forms application on the same server, creates the same
¤ connection in 0.7 seconds.
¤
¤ The same ASP .NET application installed on a low spec development
¤ machine running Windows 2000 Professional (or Windows XP Pro), opens
¤ the connection in 0.7 seconds.
¤
¤ Please, please tell me if you have seen this before and give me some
¤ ideas.
¤ I've tried everything!

First, five seconds isn't necessarily a long time to establish an initial connection. I would
probably be more concerned with the query duration.

Second, connection pooling could be the reason why your other applications are faster. This would
especially be true if you tested on the Win2K Server first, creating a pooled connection that your
testing environments which could then use.

There is a way to test this and that would be to establish an initial connection with your ASP.NET
app on the server and then close it when your page loads, and then reload the page again and see if
it connects more quickly the second time.

You don't mentioned what type of database you are using, but I will assume it's server based and
supports connection pooling.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2

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

Similar topics

11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
1
by: Lyle Fairfield | last post by:
I created a new MS-SQL Database, "TestODBC". I made Table1 and StoredProcedure1. I made an ODBC DSN for that MS-SQL Database. I created a new AccessXP mdb, "TestODBC". I linked to the...
1
by: Paul | last post by:
Hello, I am converting an Access database on our network to a sql 2000 backend and keeping access as the front end. The access database has evolved and been a solution to collect data but now...
1
by: paul_tomlin | last post by:
We connect via terminal services to an excel spreadsheet that has an ODBC link to an access database using a pivot table, when we try to refresh the data within the excel spreadsheet we receive the...
5
by: Mike | last post by:
I am writing a .NET application in C# that uses Crystal Reports. I want the crystal reports to grab information from a database no matter where the database is located. To do this, I want to...
1
by: James Brown | last post by:
This problem has had me stuck for weeks now... I have an ASP .NET application on a machine running Windows 2000 Server. It connects to an ODBC data source using the ODBC Data Provider. The...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.