Releases: dotnet/SqlClient
Releases · dotnet/SqlClient
Preview Release v5.2.0-preview3.23201.1
[Preview Release 5.2.0-preview3.23201.1] - 2023-07-20
This update brings the below changes over the previous release:
Added
- Added a new
AccessTokenCallBack
API toSqlConnection
. #1260 - Added support for the
SuperSocketNetLib
registry option for Encrypt on .NET on Windows. #2047
Fixed
- Fixed
SqlDataAdapter.Fill
and configurable retry logic issue on .NET Framework. #2084 - Fixed
SqlConnectionEncryptOption
type conversion by introducing theSqlConnectionEncryptOptionConverter
attribute when using appsettings.json files. #2057 - Fixed th-TH culture info issue on Managed SNI. #2066
Changed
- Switched to the new .NET NegotiateAuthentication API on .NET 7.0 and above for SSPI token negotiation using Managed SNI. #2063
- Removed
ignoreSniOpenTimeout
in open connection process on Windows. #2067 - Enforce explicit ordinal for internal
StringComparison
operations. #2068 - Code health improvements: #1959, #2071, #2073, #2088
For detailed release notes, refer to 5.2.0-preview3.md
Preview Release v5.2.0-preview2.23159.1
[Preview Release 5.2.0-preview2.23159.1] - 2023-06-08
This update brings the below changes over the previous release:
Added
- Added new property
RowsCopied64
toSqlBulkCopy
. #2004
Fixed
- Fixed mixed synchronization issue in managed SNI. #1029
- Fixed issue with
SqlConnectionStringBuilder
property indexer not supporting non-string values. #2018
Changed
- Moved to new System.Data.SqlTypes APIs in .NET 7 and upper. 1934 and #1981
- Changed UseOneSecFloorInTimeoutCalculationDuringLogin App Context switch default to true and extended its effect to .NET and .NET Standard. #2012
- Updated
Microsoft.Identity.Client
version from 4.47.2 to 4.53.0. #2031, #2055 - Code health improvement: #1985
For detailed release notes, refer to 5.2.0-preview2.md
Stable Release v2.1.6
Preview Release v5.2.0-preview1.23109.1
[Preview Release 5.2.0-preview1.23109.1] - 2023-04-20
This update brings the below changes over the v5.1 release:
Added
- Added support of
SqlDiagnosticListener
on .NET Standard. #1931
Fixed
- Fixed AE enclave retry logic for async queries. #1988
- Fixed activity correlator to continue use of same GUID for connection activity. #1997
- Fixed behavior when error class is greater than 20 on connection retry. #1953
- Fixed error message when symmetric key decryption failed using Always Encrypted. #1948
- Fixed TransactionScope connection issue when Enlist is enable, Pooling is disabled and network connection type is Redirect. #1960
- Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync. #1936
- Fixed throttling of token requests by calling AcquireTokenSilent. #1925
- Fixed Linux code coverage result in Build proj. #1950
- Fixed NullReferenceException in GetBytesAsync. #1906
- Fixed Transient fault handling issue with OpenAsync. #1983
- Fixed invariant mode checks. #1917
- Fixed GC behavior in TdsParser by adding array rental capability in TryReadPlpUnicodeChars. #1866
Changed
- Updated Azure Identity version from 1.7.0 to 1.8.0. #1921
- Improved parsing buffered characters in
TdsParser
. #1544 - Removed reference to Microsoft.Win32.Registry since it's shipped starting with .NET 6.0. #1974
- Added Microsoft.SqlServer.Types to verify support for SqlHierarchyId and Spatial for .NET Core. #1848
- Code health improvements:#1943#1949#1198#1829
For detailed release notes, refer to 5.2.0-preview1.md
Stable Release v4.0.3
Stable Release v5.0.2
[Stable release 5.0.2] - 2023-03-31
Fixed
- Fixed memory leak regression from #1785 using a
DisposableTemporaryOnStack
struct. #1980 - Fixed
TransactionScope
connection issue whenEnlist
isenabled
,Pooling
isdisabled
, andNetwork Connection Type
is set toRedirect
. #1978 - Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. #1977
- Fixed TDS RPC error on large queries in
SqlCommand.ExecuteReaderAsync
. #1976 - Fixed deadlock when using SinglePhaseCommit with distributed transactions. #1975
For summary of all changes over v5.0.1, refer to 5.0.2.md
Stable Release v5.1.1
[Stable release 5.1.1] - 2023-03-28
Fixed
- Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. #1968
- Fixed
TransactionScope
connection issue whenEnlist
isenabled
,Pooling
isdisabled
, andNetwork Connection Type
is set toRedirect
. #1967 - Fixed throttling of token requests by calling
AcquireTokenSilent
. #1966 - Fixed TDS RPC error on large queries in
SqlCommand.ExecuteReaderAsync
. #1965 - Fixed
NullReferenceException
inGetBytesAsync
. #1964
For summary of all changes over v5.1.0, refer to 5.1.1.md
Stable Release v3.1.3
[Stable release 3.1.3] - 2023-03-10
Fixed
- Fixed throttling of token requests by calling AcquireTokenSilent in AAD Integrated/Password flows when the account is already cached.#1926
- Fixed TDS RPC error on large queries in SqlCommand.ExecuteReaderAsync.#1939
For summary of all changes over v3.1.2, refer to 3.1.3.md
Stable Release v3.1.2
[Stable release 3.1.2] - 2023-02-03
Added
- Added Windows ARM64 support when targeting .NET Framework. #1908
Fixed
- Fixed thread safety of transient error list in configurable retry logic. #1911
- Fixed deadlock when using SinglePhaseCommit with distributed transactions. #1912
- Fixed Default UTF8 collation conflict. #1910
- Added CommandText length validation when using stored procedure command types. #1909
For summary of all changes over v3.1.1, refer to 3.1.2.md
Stable Release v5.1.0
Breaking changes
Added
- Added support for .NET 6.0. #1704
- Added support for
DateOnly
andTimeOnly
forSqlParameter
value andGetFieldValue
. #1813 - Added support for TLS 1.3 on .NET Core and native SNI. #1821
- Added
ServerCertificate
setting forEncrypt=Mandatory
orEncrypt=Strict
. #1822 - Added Windows ARM64 support when targeting .NET Framework. #1828
Fixed
- Fixed thread safety of transient error list in configurable retry logic. #1882
- Fixed deadlock when using SinglePhaseCommit with distributed transactions. #1801
- Fixed Dedicated Admin Connections (DAC) to localhost in managed SNI #1865
- Fixed memory leak regression from #1781 using a
DisposableTemporaryOnStack
struct. #1818 - Fixed
ReadAsync()
behavior to register Cancellation token action before streaming results. #1781 - Fixed
NullReferenceException
when assigningnull
toSqlConnectionStringBuilder.Encrypt
. #1778 - Fixed missing
HostNameInCertificate
property in .NET Framework Reference Project. #1776 - Fixed async deadlock issue when sending attention fails due to network failure. #1766
- Fixed failed connection requests in ConnectionPool in case of PoolBlock. #1768
- Fixed hang on infinite timeout and managed SNI. #1742
- Fixed Default UTF8 collation conflict. #1739
Changed
- Updated
Microsoft.Data.SqlClient.SNI
(.NET Framework dependency) andMicrosoft.Data.SqlClient.SNI.runtime
(.NET Core/Standard dependency) version to5.1.0
. #1889 which includes fix for AppDomain crash in issue #1418, TLS 1.3 Support, removal of ARM32 binaries, and support for theServerCertificate
option. #1822 Read more - Reverted "Excluding unsupported TLS protocols" for issue #1151 (i.e. removed
Switch.Microsoft.Data.SqlClient.EnableSecureProtocolsByOS
) by adding support for TLS 1.3. #1824 - Changed the
SqlConnectionEncryptOption
string parser to public. #1771 - Converted
ExecuteNonQueryAsync
to use async context object. #1692 - Code health improvements #1867 #1849 #1812 #1520 #1604 #1598 #1595 #1443
For summary of all changes over v5.0, refer to 5.1.0.md