Top "Dbconnection" questions

Right query to get the current number of connections in a PostgreSQL DB

Which of the following two is more accurate? select numbackends from pg_stat_database; select count(*) from pg_stat_activity;

sql database postgresql dbconnection
nodejs mysql Error: Connection lost The server closed the connection

when I use node mysql, an error is appear between 12:00 to 2:00 that the TCP connection is shutdown by the server. …

mysql node.js dbconnection
Is java.sql.Connection thread safe?

To rephrase the question: should I avoid sharing instances of classes which implement java.sql.Connection between different threads?

java multithreading jdbc thread-safety dbconnection
C# Retrieving correct DbConnection object by connection string

I have a connection string being passed to a function, and I need to create a DbConnection based object (i.…

.net ado.net connection-string dbconnection
How can I hide my password in my C# Connection string?

I have the following connection string: Data Source=Paul-HP\MYDB;Initial Catalog=MyMSDBSQL;Persist Security Info=True;User ID=sa;…

c# dbconnection
Executing a stored procedure using a DbConnection

I need to execute a stored procedure on a database. This is what I got so far that works: protected …

.net stored-procedures dbconnection
ASP.NET: How to create a connection from a web.config ConnectionString?

How do you construct a DbConnection based on a provider name? Sample provider names System.Data.SqlClient System.Data.OleDb …

ado.net web-config provider connection-string dbconnection
Docker MySQL connection DBeaver

I just finished following this Docker tutorial on youtube: https://www.youtube.com/watch?v=SXY0MLHP3hA&lc=…

mysql docker docker-compose dbeaver dbconnection
After session.close() connection is still active with Database

I am working with swing and hibernate. Now for retrive connection, I am using sessionFactory.openSession(). Once I done with …

hibernate dbconnection hibernate-session
Is using a singleton for the connection a good idea in ASP.NET website

I'm currently using a singleton on my web application so that there is always only one connection to the database. …

asp.net singleton dbconnection