Wednesday, April 13, 2022

Released: Microsoft.Data.SqlClient 5.0 Preview 2

Microsoft.Data.SqlClient 5.0 Preview 2 has been released. This release contains improvements and updates to the Microsoft.Data.SqlClient data provider for SQL Server.

Our plan is to provide GA releases twice a year with two or three preview releases in between. This cadence should provide time for feedback and allow us to deliver features and fixes in a timely manner. This second 5.0 preview includes fixes and changes over the previous preview release.


Breaking changes over v5.0.0-preview1

  • Dropped support for .NET Framework 4.6.1 #1574


  • Don't force Certificate Revocation List (CRL) check during authentication #1559


  • Updated Microsoft.Data.SqlClient.SNI (.NET Framework dependency) and Microsoft.Data.SqlClient.SNI.runtime (.NET Core/Standard dependency) version to 5.0.0-preview2.22084.1. #1563
  • Updated Azure.Identity version to 1.5.0 and Microsoft.Identity.Client version to 4.30.1 #1462
  • Replaced AlwaysEncryptedAttestationException with SqlException #1515
  • Improved error message when adding wrong type to SqlParameterCollection #1547


For the full list of changes in Microsoft.Data.SqlClient 5.0 Preview 2, please see the Release Notes.


To try out the new package, add a NuGet reference to Microsoft.Data.SqlClient in your application and pick the 5.0 preview 2 version.


We appreciate the time and effort you spend checking out our previews. It makes the final product that much better. If you encounter any issues or have any feedback, head over to the SqlClient GitHub repository and submit an issue.


David Engel

Posted at