tagged [connection]

Why does RedisManager property removed from ServiceStack/Service.cs file?

Why does RedisManager property removed from ServiceStack/Service.cs file? Previously we had a RedisManager property in the version of 4.0.50 but in the latest version this property is removed. Can any...

How to check if connection string is valid?

How to check if connection string is valid? I'm writing an application where a user provides a connection string manually and I'm wondering if there is any way that I could validate the connection str...

20 Aug at 19:44

.net connection pooling

.net connection pooling I don't get what is the syntax difference between regular connection and connection pool. When I'm using the `using` key such as: Is this the way to perform a connection pool?

29 Jul at 21:47

How to list active connections on PostgreSQL?

How to list active connections on PostgreSQL? Is there a command in PostgreSQL to select active connections to a given database? `psql` states that I can't drop one of my databases because there are ,...

Check if Internet Connection Exists with jQuery?

Check if Internet Connection Exists with jQuery? How do you check if there is an internet connection using jQuery? That way I could have some conditionals saying "use the google cached version of JQue...

How to set test TCP connection timeout?

How to set test TCP connection timeout? I try to test TCP connection with the following code. How to set time out if the IP or port is invalid?

31 Aug at 02:24

Why do we need to set Min pool size in ConnectionString

Why do we need to set Min pool size in ConnectionString For SQL connection pool, why do we need to set up a min pool size? As connections will be saved in the connection pool and reused, why do we nee...

7 Oct at 09:52

What is the difference between Integrated Security = True and Integrated Security = SSPI?

What is the difference between Integrated Security = True and Integrated Security = SSPI? I have two apps that use Integrated Security. One assigns `Integrated Security = true` in the connection strin...

How to Access a connectionstring from another project

How to Access a connectionstring from another project I got two project in my solution in Visual Studio 2010. Project 1 contains an `app.config` with a `ConnectionString`. How can I access that `Conne...

5 Jan at 11:13

Centralize connection strings for multiple projects within the same solution

Centralize connection strings for multiple projects within the same solution I currently have three projects in my solution that all have their own App.config file with the same exact connection strin...

22 Apr at 19:2

DBContext disposing doesn't change the number of opened connections

DBContext disposing doesn't change the number of opened connections In highload legacy application I've found tons of code which just creates new DBContext, then makes request and doesn't dispose the ...

Changing dataset connection string at runtime

Changing dataset connection string at runtime I have a c# generated dataset. How can I change the connection string so I can use the dataset with another (identically structured yet differently popula...

13 Aug at 14:1

MySQL Workbench: How to keep the connection alive

MySQL Workbench: How to keep the connection alive I am using MySQL Workbench. Also, I am running a batch of inserts, about 1000 lines total (Ex. `INSERT INTO mytable SELECT * FROM mysource1; INSERT IN...

Draw a connecting line between two elements

Draw a connecting line between two elements How can I draw a line between two or more elements to connect them? Any combination of HTML/CSS/JavaScript/SVG/Canvas is fine. If your answer supports any o...

Python [Errno 98] Address already in use

Python [Errno 98] Address already in use In my Python socket program, I sometimes need to interrupt it with . When I do this, it does close the connection using `socket.close()`. However, when I try t...

8 Dec at 06:10

Get the Server Name from Connection string Defined in App.config File?

Get the Server Name from Connection string Defined in App.config File? I want to get IP Adress of ConnectionString's serverName from my app.config file and then ping it. Actually i want ping my server...

10 Mar at 06:6

With System.Data.SQLite how do you specify a database file in the connect string using a relative path

With System.Data.SQLite how do you specify a database file in the connect string using a relative path Wanting to deploy my project on different servers I would prefer to be able to specify a connect ...

db connection pool across processes

db connection pool across processes We have a client/server application that consists of multiple EXEs. The data access layer is on the same physical tier as the client in a library shared by our EXE ...

14 Dec at 00:21

Get Connection String from Web.config in asp.net

Get Connection String from Web.config in asp.net I want to know the ways to get connection string from web.config file in asp.net. I just only know the below way . ``` using System; using System.Colle...

19 Sep at 07:43

Encrypting the connection string in web.config file in C#

Encrypting the connection string in web.config file in C# I have written the name of my database, username and password in my `web.config` file as connection string. I want to encrypt this data. How c...

How to connect Blazor WebAssembly to DataBase

How to connect Blazor WebAssembly to DataBase I recently started developing a Blazor WebAssembly app, and now I'm settling on a database connection. All lessons and instructions say that you need to e...

How to force a SqlConnection to physically close, while using connection pooling?

How to force a SqlConnection to physically close, while using connection pooling? I understand that if I instantiate a SqlConnection object, I am really grabbing a connection from a connection pool. W...

Display a ConnectionString dialog

Display a ConnectionString dialog I'm trying to create a program in C# that should be able to create, backup and restore a SQL Server database. For this, the user needs to be able to setup a connectio...

1 Aug at 07:16

Get user and password from ConnectionStringSettings

Get user and password from ConnectionStringSettings How can I get the user and password from such a connectionString in the app.config with a .NET function? Of course I could read that string and get ...

26 Oct at 08:14

How to connect to mysql from C# over SSH

How to connect to mysql from C# over SSH How can I connect to a mysql database trough C#, This is my connection string now: How to put SSH string in this form as it needs to be something like: SSH Hos...