Top "Database-connection" questions

A database connection is a facility that allows client software to communicate with database server software, whether on the same machine or not.

python: sqlalchemy - how do I ensure connection not stale using new event system

I am using the sqlalchemy package in python. I have an operation that takes some time to execute after I …

mysql sqlalchemy database-connection operationalerror
SQL ERROR: Closed Connection in java

Connection is closing automatically even if i'm not closing in finally block. public String look( long id, String codeName, Connection …

java sql jdbc database-connection sqlexception
Mongo-Go-Driver Failing to Connect

So I am trying to use https://github.com/mongodb/mongo-go-driver to connect to a mongo database in golang. Here …

database mongodb go database-connection mongo-go
What is the difference between a Session and a Connection in Hibernate?

I want to clear the basic 3 points, Does beginning a new database transaction on an old session obtains a new …

hibernate session jpa database-connection connection-pooling
Best practices for persistent database connections in Python when using Flask

My question is about the recommended approach for handling database connections when using Flask in a production environment or other …

python database flask database-connection pooling
Does DBCP connection pool connection.close() return connection to pool

Using BasicDataSource from DBCP if we do a getConnection() and in the finally block we close the connection does it …

java database-connection connection-pooling apache-commons-dbcp
How do I return a ADODB.Connection from a function in VBA?

I have recently started working with another programmer on a large Access VBA/SQL Server application. In each function there …

sql-server ms-access database-connection vba adodb
Can't solve "Sqlparameter is already contained by another SqlparameterCollection"

I am using 2 threads (from same class) in a windows service. I always getting the same error message: "The SqlParameter …

c# multithreading database-connection sqlparameter
Should I open() and close() my SQL database constantly or leave it open?

I am creating an app that uses an SQL database for storing data. The way the app is designed it …

android sql database database-connection
Robomongo & Meteor mongodb localhost connection failure

I have a Meteor app running on localhost:3000. Trying to connect to it with Robomongo results in "Authorization skipped by …

mongodb meteor database-connection robo3t