This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Community Hub.
Microsoft.Data.SqlClient 6.0 Preview 1 has been released. This release contains improvements and updates to the Microsoft.Data.SqlClient data provider for SQL Server.
Our plan is to provide regular GA releases with several preview releases in between. This cadence should provide time for feedback and allow us to deliver features and fixes in a timely manner. This 6.0 preview includes fixes and changes over the 5.2 GA release.
Breaking Changes
Added
- Added TokenCredentialobject to take advantage of token caching inActiveDirectoryAuthenticationProvider. #2380
- Added DateOnlyandTimeOnlysupport toDataTableas a structured parameter. #2258
- Added Microsoft.Data.SqlClient.Diagnostics.SqlClientDiagnostictype in .NET. #2226
- Added scope trace for GenerateSspiClientContext. #2497, #2725
Fixed
- Fixed Socket.Connecttimeout issue caused by thread starvation. #2777
- Fixed pending data with SqlDataReaderagainst an encrypted column. #2618
- Fixed Entra authentication when using infinite connection timeout in ActiveDirectoryAuthenticationProvider. #2651
- Fixed GetSchemaby excluding unsupported engines due to lack of support forASSEMBLYPROPERTYfunction. #2593
- Fixed SSPI retry negotiation with default port in .NET. #2559
- Fixed assembly path in .NET 8.0 and .AssemblyAttributes. #2550
- Fixed certificate chain validation. #2487
- Fixed clone of SqlConnectionto includeAccessTokenCallback. #2525
- Fixed issue with DateTimeOffsetin table-valued parameters, which was introduced in 5.2. #2453
- Fixed ArgumentNullExceptiononSqlDataRecord.GetValuewhen using user-defined data type on .NET. #2448
- Fixed SqlBufferandSqlGuildwhen it's null. #2310
- Fixed SqlBulkCopy.WriteToServerstate in a consecutive calls. #2375
- Fixed null reference exception with SqlConnection.FireInfoMessageEventOnUserErrorsafter introducing the batch command. #2399
Changed
- Replaced System.Runtime.CachingwithMicrosoft.Extensions.Caching.Memory. #2493
- Improved memory allocation when reader opened by CommandBehavior.SequentialAccessover big string columns. #2356
For the full list of changes in Microsoft.Data.SqlClient 6.0 Preview 1, 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 6.0 preview 1 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
