Top "Sqlconnection" questions

Represents an open connection to a SQL Server database.

Windows authentication trusted connection not working

MSSQL Server is in the "abc" domain and have mixed mode authentication. I am connecting from the machine which is …

sql-server database-connection windows-authentication sqlconnection trustedconnection
SQLConnection pool size and active connection count in C#

In C# it is possible to enable/disable Connection Pooling by using "Pooling=True" and "Max Pool Size=XY" in …

c# count connection-pooling sqlconnection
Connection.open for hangs indefinitely, no exception is thrown

When I try to do the following code, the program hangs indefinitely. I don't know why and there seems to …

c# database database-connection sqlconnection connection-timeout
Arithmetic overflow exception when opening SQL connection

I got very weird ArithmeticOverflowException when opening an SQL connection to the underlying SQL database (stack trace included below). It …

c# sql-server windows-8.1 sqlconnection
multiple sqltransactions in single sqlconnection

I have some code that I want to execute as follows. But I keep getting the exception "This SqlTransaction has …

c# database sqlconnection sqltransaction
Does .net SqlCommand.ExecuteReader close connection?

In this sentence: myCommand.ExecuteReader(CommandBehavior.CloseConnection) does it close connection in case of exception?

.net sqlconnection sqlcommand
SqlConnection.OpenAsync() quits without throwing exception

I have following code. the call to connection.OpenAsync() quits the program without any exception. Even the finally on the …

c# asynchronous async-await sqlconnection