|
| 1 | +# Release Notes |
| 2 | + |
| 3 | +## Microsoft.Data.SqlClient 5.0.0-preview1.22069.1 released 9 March 2022 |
| 4 | + |
| 5 | +This update brings the below changes over the previous release: |
| 6 | + |
| 7 | +### Added |
| 8 | + |
| 9 | +- Added SqlDataSourceEnumerator. [#1430](https://github.com/dotnet/SqlClient/pull/1430), [Read more](#sql-data-source-enumerator-support) |
| 10 | +- Added new attestation protocol `None` option to forgo enclave attestation when using VBS enclaves. [#1425](https://github.com/dotnet/SqlClient/pull/1425) and [#1419](https://github.com/dotnet/SqlClient/pull/1419), [Read more](#new-attestation-protocol-none) |
| 11 | +- Added a new AppContext switch to suppress insecure TLS warnings. [#1457](https://github.com/dotnet/SqlClient/pull/1457), [Read more](#suppress-insecure-tls-warnings) |
| 12 | + |
| 13 | +### Fixed |
| 14 | + |
| 15 | +- Fixed all documentation paths to Unix format path. [#1442](https://github.com/dotnet/SqlClient/pull/1442) |
| 16 | +- Fixed thread safety issue for `GetEnclaveProvider` by converting dictionary to concurrent dictionary. [#1451](https://github.com/dotnet/SqlClient/pull/1451) |
| 17 | + |
| 18 | +### Changed |
| 19 | +- Updated `Microsoft.Data.SqlClient.SNI` (.NET Framework dependency) and `Microsoft.Data.SqlClient.SNI.runtime` (.NET Core/Standard dependency) version to `v5.0.0-preview1.22062.1`. [#1537](https://github.com/dotnet/SqlClient/pull/1537) |
| 20 | +- Modernized style in ValueUtilSmi. [#1351](https://github.com/dotnet/SqlClient/pull/1351) |
| 21 | +- Changed SQL server codenames to version names. [#1439](https://github.com/dotnet/SqlClient/pull/1439) |
| 22 | +- Prevented subtype generation in project files. [#1452](https://github.com/dotnet/SqlClient/pull/1452) |
| 23 | +- Changed `Array.Copy` to `Buffer.BlockCopy` for byte arrays. [#1366](https://github.com/dotnet/SqlClient/pull/1366) |
| 24 | +- Changed files in csproj to be alphabetically sorted in netfx and netcore. [#1364](https://github.com/dotnet/SqlClient/pull/1364) |
| 25 | +- Sqlstream, SqlInternalTransaction and MetaDataUtilsSmi are moved to shared folder. [#1337](https://github.com/dotnet/SqlClient/pull/1337), [#1346](https://github.com/dotnet/SqlClient/pull/1346) and [#1339](https://github.com/dotnet/SqlClient/pull/1339) |
| 26 | +- Various code improvements: [#1197](https://github.com/dotnet/SqlClient/pull/1197), [#1313](https://github.com/dotnet/SqlClient/pull/1313),[#1330](https://github.com/dotnet/SqlClient/pull/1330),[#1366](https://github.com/dotnet/SqlClient/pull/1366), [#1435](https://github.com/dotnet/SqlClient/pull/1435),[#1478](https://github.com/dotnet/SqlClient/pull/1478) |
| 27 | + |
| 28 | +### SQL Data Source Enumerator support |
| 29 | +Provides a mechanism for enumerating all available instances of SQL Server within the local network. |
| 30 | +```cs |
| 31 | +using Microsoft.Data.Sql; |
| 32 | + |
| 33 | +static void Main() |
| 34 | + { |
| 35 | + // Retrieve the enumerator instance and then the data. |
| 36 | + SqlDataSourceEnumerator instance = |
| 37 | + SqlDataSourceEnumerator.Instance; |
| 38 | + System.Data.DataTable table = instance.GetDataSources(); |
| 39 | + |
| 40 | + // Display the contents of the table. |
| 41 | + DisplayData(table); |
| 42 | + |
| 43 | + Console.WriteLine("Press any key to continue."); |
| 44 | + Console.ReadKey(); |
| 45 | + } |
| 46 | + |
| 47 | + private static void DisplayData(System.Data.DataTable table) |
| 48 | + { |
| 49 | + foreach (System.Data.DataRow row in table.Rows) |
| 50 | + { |
| 51 | + foreach (System.Data.DataColumn col in table.Columns) |
| 52 | + { |
| 53 | + Console.WriteLine("{0} = {1}", col.ColumnName, row[col]); |
| 54 | + } |
| 55 | + Console.WriteLine("============================"); |
| 56 | + } |
| 57 | + } |
| 58 | +``` |
| 59 | + |
| 60 | +### New Attestation protocol `None` |
| 61 | + new attestation protocol called `None` will be allowed in the connection string. This protocol will allow users to forgo enclave attestation for `VBS` enclaves. When this protocol is set, the enclave attestation URL property is optional. |
| 62 | + |
| 63 | +Connection string example: |
| 64 | + |
| 65 | +```cs |
| 66 | +//Attestation protocol NONE with no URL |
| 67 | +"Data Source = {server}; Initial Catalog = {db}; Column Encryption Setting = Enabled; Attestation Protocol = None;" |
| 68 | + |
| 69 | +``` |
| 70 | + |
| 71 | +### Suppress insecure TLS warnings |
| 72 | +A security warning is ouptput on the console if the TLS version less than 1.2 is used to negotiate with the server. This warning could be suppressed on SQL connection while `Encrypt = false` by enabling the following AppContext switch on the application startup: |
| 73 | +```cs |
| 74 | +Switch.Microsoft.Data.SqlClient.SuppressInsecureTLSWarning |
| 75 | +``` |
| 76 | + |
| 77 | +## Target Platform Support |
| 78 | + |
| 79 | +- .NET Framework 4.6.1+ (Windows x86, Windows x64) |
| 80 | +- .NET Core 3.1+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) |
| 81 | +- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) |
| 82 | + |
| 83 | +### Dependencies |
| 84 | + |
| 85 | +#### .NET Framework |
| 86 | + |
| 87 | +- Microsoft.Data.SqlClient.SNI 5.0.0.preview1.22062.1 |
| 88 | +- Azure.Identity 1.3.0 |
| 89 | +- Microsoft.Identity.Client 4.22.0 |
| 90 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 91 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 92 | +- System.Buffers 4.5.1 |
| 93 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 94 | +- System.IO 4.3.0 |
| 95 | +- System.Runtime.InteropServices.RuntimeInformation 4.3.0 |
| 96 | +- System.Security.Cryptography.Algorithms 4.3.1 |
| 97 | +- System.Security.Cryptography.Primitives 4.3.0 |
| 98 | +- System.Text.Encodings.Web 4.7.2 |
| 99 | + |
| 100 | +#### .NET Core |
| 101 | + |
| 102 | +- Microsoft.Data.SqlClient.SNI.runtime 5.0.0.preview1.22062.1 |
| 103 | +- Azure.Identity 1.3.0 |
| 104 | +- Microsoft.Identity.Client 4.22.0 |
| 105 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 106 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 107 | +- Microsoft.Win32.Registry 5.0.0 |
| 108 | +- System.Buffers 4.5.1 |
| 109 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 110 | +- System.Diagnostics.DiagnosticSource 5.0.0 |
| 111 | +- System.IO 4.3.0 |
| 112 | +- System.Runtime.Caching 5.0.0 |
| 113 | +- System.Text.Encoding.CodePages 5.0.0 |
| 114 | +- System.Text.Encodings.Web 4.7.2 |
| 115 | +- System.Resources.ResourceManager 4.3.0 |
| 116 | +- System.Security.Cryptography.Cng 5.0.0 |
| 117 | +- System.Security.Principal.Windows 5.0.0 |
| 118 | + |
| 119 | +#### .NET Standard |
| 120 | + |
| 121 | +- Microsoft.Data.SqlClient.SNI.runtime 5.0.0.preview1.22062.1 |
| 122 | +- Azure.Identity 1.3.0 |
| 123 | +- Microsoft.Identity.Client 4.22.0 |
| 124 | +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.8.0 |
| 125 | +- Microsoft.IdentityModel.JsonWebTokens 6.8.0 |
| 126 | +- Microsoft.Win32.Registry 5.0.0 |
| 127 | +- System.Buffers 4.5.1 |
| 128 | +- System.Configuration.ConfigurationManager 5.0.0 |
| 129 | +- System.IO 4.3.0 |
| 130 | +- System.Runtime.Caching 5.0.0 |
| 131 | +- System.Text.Encoding.CodePages 5.0.0 |
| 132 | +- System.Text.Encodings.Web 4.7.2 |
| 133 | +- System.Resources.ResourceManager 4.3.0 |
| 134 | +- System.Runtime.Loader 4.3.0 |
| 135 | +- System.Security.Cryptography.Cng 5.0.0 |
| 136 | +- System.Security.Principal.Windows 5.0.0 |
0 commit comments