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

Database server connection

I am trying to using mysql as back-end for an application(web) running
on the window 2X, one thing I am not sure is that once I establish the
connection between database server and application, should I keep this
connection open while application is running, or only open it when
there is a requet to qury records from database?

Thanks for your help.
Jul 20 '05 #1
3 1918
On 22 Sep 2004 20:24:42 -0700, in mailing.database.mysql
pe*******@hotmail.com (Leon) wrote:
| I am trying to using mysql as back-end for an application(web) running
| on the window 2X, one thing I am not sure is that once I establish the
| connection between database server and application, should I keep this
| connection open while application is running, or only open it when
| there is a requet to qury records from database?
|
| Thanks for your help.


Using the normal web pages the connection is automatically closed once
the server completes it's processing and sends the file to the user.

The basic rule is open connection, get data, close connection.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #2
Jeff North <jn****@yourpantsbigpond.net.au> wrote in message news:<i0********************************@4ax.com>. ..
On 22 Sep 2004 20:24:42 -0700, in mailing.database.mysql
pe*******@hotmail.com (Leon) wrote:
| I am trying to using mysql as back-end for an application(web) running
| on the window 2X, one thing I am not sure is that once I establish the
| connection between database server and application, should I keep this
| connection open while application is running, or only open it when
| there is a requet to qury records from database?
|
| Thanks for your help.


Using the normal web pages the connection is automatically closed once
the server completes it's processing and sends the file to the user.

The basic rule is open connection, get data, close connection.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------

Thanks.
On my web application, the database server has no idea about
front-end request and response, the server only deals with my
mid-tiler database interface.
Jul 20 '05 #3
On 23 Sep 2004 07:11:15 -0700, in mailing.database.mysql
pe*******@hotmail.com (Leon) wrote:
| Jeff North <jn****@yourpantsbigpond.net.au> wrote in message news:<i0********************************@4ax.com>. ..
| > On 22 Sep 2004 20:24:42 -0700, in mailing.database.mysql
| > pe*******@hotmail.com (Leon) wrote:
| >
| > >| I am trying to using mysql as back-end for an application(web) running
| > >| on the window 2X, one thing I am not sure is that once I establish the
| > >| connection between database server and application, should I keep this
| > >| connection open while application is running, or only open it when
| > >| there is a requet to qury records from database?
| > >|
| > >| Thanks for your help.
| >
| > Using the normal web pages the connection is automatically closed once
| > the server completes it's processing and sends the file to the user.
| >
| > The basic rule is open connection, get data, close connection.
|
| Thanks.
| On my web application, the database server has no idea about
| front-end request and response, the server only deals with my
| mid-tiler database interface.


That's fine but you still need to observe the basic rule regardless of
the number of tiers. Think of it this way, would you open every EXE
program on your machine and then expect it to run efficiently?

For example, a connection is between the server and a table or query.
You would need to create connections for all your tables and queries.
On top of that you would need to create connections for the different
methods of manipulating the data (SELECT, UPDATE, DELETE) - per user.
I think your web admin might have more that a few nasty words to say
to you. :-)
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #4

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

Similar topics

1
by: Ben M. | last post by:
Greetings all, This should be an easy task, and Im sure it is, but as many times as I have tried, I cant seem to get this to work properly. We changed ISPs recently from a shared host to a...
8
by: peter | last post by:
I have taken over the website duties at work. I am still learning PHP and MySQL. I want to have a form where the user enters some finacial info and it is stored in a database. It, obviously,...
3
by: markaelkins | last post by:
I want to create a simple user interface to collect the following data and store the data in a SQL database…. Could someone please help me get started? Data to collect from user interface and...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
1
by: dave | last post by:
I'm classic ASP developer and trying to switch to .net ...I'm newbie to ..net... In classic ASP for ADO connectivity i used to put below code in one separate file and used to include that file...
7
by: News | last post by:
Hello, I have to build a program with the future in mind and I need a bit of guidance from a guru or two. My program will start as a multi-user Windows Application built with VB.Net and using an...
13
by: Christopher Cashell | last post by:
Yesterday, while attempting to access a database, I received errors saying that the database was innaccessible. After investigating a little, I found the following in the PostgreSQL log files: ...
2
by: Ron St-Pierre | last post by:
We're developing a java app and are using postgres as the database. On our dev server I started the app, closed it, but the java process was still open so I killed it, which caused the above error....
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
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
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...

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.