Content deleted Content added
Adding local short description: "Link between a client and database server", overriding Wikidata description "means by which a database server and its client software communicate with each other" |
|||
(10 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Short description|Link between a client and database server}}
A '''Database connection''' is a facility in [[computer science]] that allows [[Client (computing)|client]] software to talk to [[database server]] software, whether on the same machine or not. A '''connection''' is required to send [[command (computing)|commands]] and receive answers, usually in the form of a result set.▼
{{no inline sources|date=July 2025}}
▲A '''
Connections are a key concept in [[data-centric]] programming. Since some DBMS engines require considerable time to connect, [[connection pooling]] was invented to improve performance. No command can be performed against a database without an "open and available" connection to it.
Line 9 ⟶ 11:
== Pooling ==
Database connections are finite and [[time complexity|expensive]] and can take a disproportionately long time to create relative to the operations performed on them. It is
[[Connection pool]]ing is a technique designed to alleviate this problem. A pool of database connections can be created and then shared among the applications that need to access the database.
Line 19 ⟶ 21:
In a client/server architecture, on the other hand, a persistent connection is typically used so that server state can be managed. This "state" includes server-side cursors, temporary products, connection-specific functional settings, and so on.
An application failure occurs when the connection pool overflows. This can occur if all of the
== See also ==
* [[ActiveX Data Objects|ADO]]
* [[ADO.NET]]
* [[ODBC|ODBC (Open Database Connectivity)]]
* [[JDBC]]
* [[RDBMS]]
|