You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a simple unplug and re-plug of the network cable, connection resiliency seems to have stopped working between System.Data.SqlClient 4.6.0 and Microsoft.Data.SqlClient 1.0.19269.1.
Using the attached solution, build and run with a command line connection string against a remote SQL Server instance (I used SQL Server 2017 on the same wired LAN): "Data Source=[remote host];Trusted_Connection=true;Pooling=False;Connect Timeout=30;"
Unplug your network cable for 30 seconds when prompted. Plug it back in a wait 7-8 seconds for the network to come back up. Press a key to continue and note the exception that the connection is closed.
Expected behavior
Using System.Data.SqlClient 4.6.0, the ExecuteReader() following the connection interruption succeeds. I would expect Microsoft.Data.SqlClient to succeed, too.
Further technical details
Microsoft.Data.SqlClient version: 1.0.19269.1
.NET target: Core 2.2
SQL Server version: SQL Server 2017
Operating system: Windows 10
Additional context
Others have reproduced this over WiFi by disconnecting and reconnecting WiFi, too. I was not able to reproduce this against an Azure SQL DB endpoint.
The text was updated successfully, but these errors were encountered:
Describe the bug
In a simple unplug and re-plug of the network cable, connection resiliency seems to have stopped working between System.Data.SqlClient 4.6.0 and Microsoft.Data.SqlClient 1.0.19269.1.
To reproduce
smo-test-master.zip
Using the attached solution, build and run with a command line connection string against a remote SQL Server instance (I used SQL Server 2017 on the same wired LAN):
"Data Source=[remote host];Trusted_Connection=true;Pooling=False;Connect Timeout=30;"
Unplug your network cable for 30 seconds when prompted. Plug it back in a wait 7-8 seconds for the network to come back up. Press a key to continue and note the exception that the connection is closed.
Expected behavior
Using System.Data.SqlClient 4.6.0, the ExecuteReader() following the connection interruption succeeds. I would expect Microsoft.Data.SqlClient to succeed, too.
Further technical details
Microsoft.Data.SqlClient version: 1.0.19269.1
.NET target: Core 2.2
SQL Server version: SQL Server 2017
Operating system: Windows 10
Additional context
Others have reproduced this over WiFi by disconnecting and reconnecting WiFi, too. I was not able to reproduce this against an Azure SQL DB endpoint.
The text was updated successfully, but these errors were encountered: