One or more connections to a database or database server. For questions about *establishing* a connection, use the **connectivity** tag instead.
Questions tagged [connections]
209 questions
82
votes
3 answers
How to drop all connections to a specific database without stopping the server?
I want to drop all connections (sessions) that are currently opened to a specific PostgreSQL database but without restarting the server or disconnecting connections to other databases.
How can I do that?
sorin
- 1,092
- 3
- 10
- 14
27
votes
2 answers
Is a Postgres long-running query aborted if the connection is lost/broken?
If I open a connection to Postgres and issue a long-running query, and then break the connection (e.g., kill the client process that opened the connection), will the long-running query continue to run, or will it be automatically aborted? Is this…
Rob Bednark
- 1,763
- 4
- 19
- 20
25
votes
2 answers
Max number of user connections
In SQL Server 2012 Standard edition, I know that the max number of user connections is 32,767. What should I do as a DBA if I am heading towards this number?
Currently there are 30,000 user connections, and this number is expected to increase.
sebeid
- 1,363
- 2
- 15
- 24
19
votes
5 answers
Azure SQL Database "Login failed for user" in application, but works fine in SSMS
I wanted to try out the contained database users feature on Azure SQL Database V12, but I'm having a problem authenticating that seems odd to me.
I created a database called Classifier. I added my IP to the firewall rules so I could connect to…
Ben Collins
- 293
- 1
- 2
- 9
14
votes
7 answers
How to solve "Can't connect to local MySQL server through socket" error?
I kept getting this following error every time I tried to restart MySql. It was working fine before I changed the default data directory.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib …
MahuLovzYou
- 141
- 1
- 1
- 3
13
votes
3 answers
How can I check if connection to Sql Server is encrypted?
In SQL Server I can "Force Encryption" in protocols settings. If I leave that set to "No" any client can still require encryption.
Can I somehow see what connections to the database are using encryption?
Mathias Rönnlund
- 245
- 1
- 2
- 7
12
votes
6 answers
How to deny access to SQL Server to certain login over SSMS, but allow over .Net SqlClient Data Provider
We have a situation where Developers do not have any UPDATE permissions, BUT they work with applications and see connection strings -> they know passwords from some SQL accounts (example SQLLogin1) that have UPDATE permissions. Our operations…
Aleksey Vitsko
- 4,308
- 3
- 21
- 47
11
votes
4 answers
Find all IP's or users who access a specific SQL Server
Let's say I found a SQL Server and I have no idea which applications connect to it. Maybe I find one application but I am not sure if it is the only one using it.
Is there a nice way of finding all distinct connections?
RayofCommand
- 1,345
- 4
- 15
- 30
9
votes
2 answers
What reason could cause AWS RDS connections to spike
It's my first time using RDS on AWS, I use a t2.medium instance running MySQL Aurora with default configs. The CPU usage and DB connections is quite normal until "something" happens, which causes the DB connections go all the way up to its maximum…
TrungDQ
- 189
- 1
- 1
- 6
9
votes
1 answer
SQL server temp table using # - is it only accessible by the containing query for multiple connections with the same login?
Say we have 2 completely different queries, that reference a temp table with the same name:
query one
....operates on:
#tempTableName
query two
....operates on:
#tempTableName
I've researched this and found out that "#temp is a local…
Chris Halcrow
- 243
- 1
- 3
- 9
8
votes
1 answer
How to limit the connections per host in MongoDB?
I'm running a mongo server which accepts connections from other clients through java driver. The thing I have noticed is after a while some users open too many ports, and this prevents other users to connect to the mongo. They create only 1…
itaied
- 225
- 2
- 3
- 7
8
votes
2 answers
Logon failed for login due to trigger execution
I have been trying to login using one of my sql server logins but I am getting the error message below:
General Error Message
Copy Message Text
TITLE: Connect to Server
------------------------------
Cannot connect to…
Marcello Miorelli
- 14,544
- 46
- 126
- 249
7
votes
3 answers
COBOL programs connecting to SQL Server
Has anyone successfully made a connection to SQL Server using a COBOL program? Hoping to make a connection so that hundreds of COBOL programs don't need to be rewritten.
Riley
- 71
- 3
6
votes
2 answers
0xDBE how to connect over local socket?
I want to connect to mysql over socket.
This is what I'm trying to do:
and it's not working.
This is how it works in mysql workbench:
Bruno Gelb
- 163
- 6
6
votes
2 answers
Are CNAME aliases for connection strings a good idea?
To be very flexible and move database to different servers more easily, we came up with the idea of using an alias per database. So by simply changing a DNS entry, we can route all queries to a different database server without changing the…
SwissCoder
- 359
- 1
- 3
- 11