From 5c505a1955f2e2966f58bad32011348b2d9de143 Mon Sep 17 00:00:00 2001 From: Aris Rellegue Date: Thu, 8 Jun 2023 10:43:57 -0700 Subject: [PATCH 01/21] Add SqlConnectionEncryptOptionConverter class which is used to convert string Encrypt option into SqlConnectionEncryptionOption type. --- .../SqlConnectionEncryptOptionConverter.xml | 51 ++++++++++ src/Microsoft.Data.SqlClient.sln | 1 + .../src/Microsoft.Data.SqlClient.csproj | 3 + .../netfx/src/Microsoft.Data.SqlClient.csproj | 3 + .../SqlClient/SqlConnectionEncryptOption.cs | 2 + .../SqlConnectionEncryptOptionConverter.cs | 46 +++++++++ .../Microsoft.Data.SqlClient.Tests.csproj | 1 + .../SqlConnectionStringBuilderTest.cs | 93 +++++++++++++++++++ 8 files changed, 200 insertions(+) create mode 100644 doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml create mode 100644 src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml new file mode 100644 index 0000000000..9f26bc71c7 --- /dev/null +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml @@ -0,0 +1,51 @@ + + + + + Converts a string Sql Connection Encrypt option into SqlConnectionEncryptOption object + + + ## Remarks +Implicit conversions have been added to maintain backwards compatibility with boolean behahavior for the property. When converting from a boolean, a value of `true` converts to and a value of `false` converts to . When converting to a boolean, , , and `null` convert to `true` and converts `false`. + + + + + + If the source type is a string then conversion is allowed . + + A string containing the value to convert. + + if the parameter can be converted successfully; otherwise, . + + This method does not throw an exception. + + + + Converts the specified string representation of a logical value to its equivalent. + + A string containing the value to convert. + + An object that is equivalent to . + + + An object that is equivalent to with value of if conversion was successful; + otherwise, an exception is thrown. + + This method throws an exception if conversion fails. + + + + Converts an object value to its string representation. + + An object containing the value to convert. + + A string representation of the value of . + + + A string representation of the value of . + + This method does not throw an exception if conversion fails. + + + diff --git a/src/Microsoft.Data.SqlClient.sln b/src/Microsoft.Data.SqlClient.sln index c5b34945a0..a94447bf12 100644 --- a/src/Microsoft.Data.SqlClient.sln +++ b/src/Microsoft.Data.SqlClient.sln @@ -121,6 +121,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.Data.SqlClient", ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml + ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index be1eb19b17..41f8374191 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -330,6 +330,9 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs + + Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs + Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 4492274116..675dd57fe6 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -422,6 +422,9 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs + + Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs + Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs index ecabdb9f04..997833437f 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs @@ -3,11 +3,13 @@ // See the LICENSE file in the project root for more information. using System; +using System.ComponentModel; using Microsoft.Data.Common; namespace Microsoft.Data.SqlClient { /// + [TypeConverter(typeof(SqlConnectionEncryptOptionConverter))] public sealed class SqlConnectionEncryptOption { private const string TRUE = "True"; diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs new file mode 100644 index 0000000000..da5eb6f8a1 --- /dev/null +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs @@ -0,0 +1,46 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + + +using System; +using System.ComponentModel; +using System.Globalization; +using System.Drawing; + +namespace Microsoft.Data.SqlClient +{ + /// + public class SqlConnectionEncryptOptionConverter : TypeConverter + { + // Overrides the CanConvertFrom method of TypeConverter. + // The ITypeDescriptorContext interface provides the context for the + // conversion. Typically, this interface is used at design time to + // provide information about the design-time container. + /// + public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) + { + if (sourceType == typeof(string)) + { + return true; + } + return base.CanConvertFrom(context, sourceType); + } + // Overrides the ConvertFrom method of TypeConverter. + /// + public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) + { + if (value is string) + { + return SqlConnectionEncryptOption.Parse(value.ToString()); + } + throw new Exception("Value to convert must be of string type!"); + } + // Overrides the ConvertTo method of TypeConverter. + /// + public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) + { + return base.ConvertTo(context, culture, value, destinationType); + } + } +} diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj index 9d1e8d5087..408d7ffa61 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj @@ -66,6 +66,7 @@ + diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs index 2bc842566a..591a426568 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs @@ -4,6 +4,12 @@ using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Text; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; using Xunit; namespace Microsoft.Data.SqlClient.Tests @@ -468,6 +474,36 @@ public void EncryptTryParseInvalidValuesReturnsFalse(string value) Assert.Null(result); } + [Theory] + [InlineData("false","False")] + [InlineData("true", "True")] + [InlineData("strict", "Strict")] + [InlineData("mandatory","True")] + [InlineData("optional", "False")] + [InlineData("yes", "True")] + [InlineData("no", "False")] + [InlineData("absolutely", "True")] + [InlineData("affirmative", "True")] + [InlineData("never", "True")] + [InlineData("always", "True")] + [InlineData("none", "True")] + public void ConnectionStringFromJsonTests(string value, string expectedValue) + { + ExecuteConnectionStringFromJsonTests(value, expectedValue); + } + + [Theory] + [InlineData("absolutely")] + [InlineData("affirmative")] + [InlineData("never")] + [InlineData("always")] + [InlineData("none")] + [InlineData(" for sure ")] + public void ConnectionStringFromJsonThrowsException(string value) + { + ExecuteConnectionStringFromJsonThrowsException(value); + } + internal void ExecuteConnectionStringTests(string connectionString) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectionString); @@ -495,5 +531,62 @@ internal static void CheckEncryptType(SqlConnectionStringBuilder builder, SqlCon Assert.IsType(builder.Encrypt); Assert.Equal(expectedValue, builder.Encrypt); } + + internal void ExecuteConnectionStringFromJsonTests(string encryptOption, string result) + { + var settings = LoadSettingsFromJsonStream(encryptOption); + var connectionString = settings!.UserDb!.ToString(); + Assert.Contains($"Encrypt={result}", connectionString, StringComparison.InvariantCultureIgnoreCase); + } + + internal void ExecuteConnectionStringFromJsonThrowsException(string encryptOption) + { + Assert.Throws(() => LoadSettingsFromJsonStream(encryptOption)); + } + + TSettings LoadSettingsFromJsonStream(string encryptOption) where TSettings : class + { + TSettings settingsOut = null; + + Host.CreateDefaultBuilder() + .ConfigureAppConfiguration((ctx, configBuilder) => + { + // Note: Inside string interpolation, a { should be {{ and a } should be }} + // First, declare a stringified JSON + var json = $"{{ \"UserDb\": {{ \"UserComponents\": {{ \"NetworkLibrary\": \"DBMSSOCN\", \"UserID\": \"user\", \"Password\": \"password\", \"DataSource\": \"localhost\", \"InitialCatalog\": \"catalog\", \"Encrypt\": \"{encryptOption}\" }}}}}}"; + + // Load the stringified JSON as a stream into the configuration builder + configBuilder.AddJsonStream(new MemoryStream(Encoding.ASCII.GetBytes(json))); + configBuilder.AddEnvironmentVariables(); + }) + .ConfigureServices((ctx, services) => + { + var configuration = ctx.Configuration; + services.AddOptions(); + services.Configure(ctx.Configuration); + settingsOut = configuration.Get(); + }) + .Build(); + + return settingsOut; + } + } + + // These 2 classes will be used by ConnectionStringFromJsonTests only + internal class UserDbConnectionStringSettings + { + [Required] + public UserSqlConnectionString UserDb { get; set; } + } + + internal class UserSqlConnectionString + { + public SqlConnectionStringBuilder UserComponents { get; set; } = new(); + + public override string ToString() + { + return UserComponents!.ConnectionString; + } } + } From cde043009d57f456b90e2b4fa4faf8f0c6dabefd Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 13 Jun 2023 08:37:36 -0700 Subject: [PATCH 02/21] Fixed Issue #1126 .NET Core SqlConnection ConnectTimout 15 less than not work? --- build.proj | 2 +- .../Microsoft/Data/SqlClient/SNI/SNIProxy.cs | 2 - .../SqlClient/SqlInternalConnectionTds.cs | 4 -- .../src/Microsoft/Data/SqlClient/TdsParser.cs | 3 -- .../Data/SqlClient/TdsParserStateObject.cs | 1 - .../SqlClient/TdsParserStateObjectManaged.cs | 3 +- .../SqlClient/TdsParserStateObjectNative.cs | 3 +- .../Data/SqlClient/TdsParserStateObject.cs | 2 +- .../SqlClient/TdsParserSafeHandles.Windows.cs | 9 ---- .../SqlConnectionBasicTests.cs | 52 +++++++++++++++++++ 10 files changed, 56 insertions(+), 25 deletions(-) diff --git a/build.proj b/build.proj index 2e1ba19930..465f9264c3 100644 --- a/build.proj +++ b/build.proj @@ -105,7 +105,7 @@ - $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType)" + $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs index ac4d3599dd..19659a2d93 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs @@ -130,7 +130,6 @@ private static bool IsErrorStatus(SecurityStatusPalErrorCode errorCode) /// Create a SNI connection handle /// /// Full server name from connection string - /// Ignore open timeout /// Timer expiration /// Instance name /// SPN @@ -148,7 +147,6 @@ private static bool IsErrorStatus(SecurityStatusPalErrorCode errorCode) /// SNI handle internal static SNIHandle CreateConnectionHandle( string fullServerName, - bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs index 66631151c9..5e3a4ad25f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs @@ -1538,7 +1538,6 @@ private bool IsDoNotRetryConnectError(SqlException exc) AttemptOneLogin(serverInfo, newPassword, newSecurePassword, - !connectionOptions.MultiSubnetFailover, // ignore timeout for SniOpen call unless MSF connectionOptions.MultiSubnetFailover ? intervalTimer : timeout); if (connectionOptions.MultiSubnetFailover && null != ServerProvidedFailOverPartner) @@ -1777,7 +1776,6 @@ TimeoutTimer timeout currentServerInfo, newPassword, newSecurePassword, - false, // Use timeout in SniOpen intervalTimer, withFailover: true ); @@ -1905,7 +1903,6 @@ private void ResolveExtendedServerName(ServerInfo serverInfo, bool aliasLookup, ServerInfo serverInfo, string newPassword, SecureString newSecurePassword, - bool ignoreSniOpenTimeout, TimeoutTimer timeout, bool withFailover = false) { @@ -1916,7 +1913,6 @@ private void ResolveExtendedServerName(ServerInfo serverInfo, bool aliasLookup, _parser.Connect(serverInfo, this, - ignoreSniOpenTimeout, timeout.LegacyTimerExpire, ConnectionOptions, withFailover); diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs index c83587ab4c..e9e3388ef8 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs @@ -361,7 +361,6 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) internal void Connect( ServerInfo serverInfo, SqlInternalConnectionTds connHandler, - bool ignoreSniOpenTimeout, long timerExpire, SqlConnectionString connectionOptions, bool withFailover) @@ -445,7 +444,6 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) // AD Integrated behaves like Windows integrated when connecting to a non-fedAuth server _physicalStateObj.CreatePhysicalSNIHandle( serverInfo.ExtendedServerName, - ignoreSniOpenTimeout, timerExpire, out instanceName, ref _sniSpnBuffer, @@ -544,7 +542,6 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) _physicalStateObj.CreatePhysicalSNIHandle( serverInfo.ExtendedServerName, - ignoreSniOpenTimeout, timerExpire, out instanceName, ref _sniSpnBuffer, true, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs index bc7cd362a8..dd37579205 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs @@ -197,7 +197,6 @@ private void ResetCancelAndProcessAttention() internal abstract void CreatePhysicalSNIHandle( string serverName, - bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs index f219e75406..e0b4765b6b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs @@ -77,7 +77,6 @@ protected override uint SNIPacketGetData(PacketHandle packet, byte[] inBuff, ref internal override void CreatePhysicalSNIHandle( string serverName, - bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, @@ -93,7 +92,7 @@ protected override uint SNIPacketGetData(PacketHandle packet, byte[] inBuff, ref string hostNameInCertificate, string serverCertificateFilename) { - SNIHandle? sessionHandle = SNIProxy.CreateConnectionHandle(serverName, ignoreSniOpenTimeout, timerExpire, out instanceName, ref spnBuffer, serverSPN, + SNIHandle? sessionHandle = SNIProxy.CreateConnectionHandle(serverName, timerExpire, out instanceName, ref spnBuffer, serverSPN, flushCache, async, parallel, isIntegratedSecurity, iPAddressPreference, cachedFQDN, ref pendingDNSInfo, tlsFirst, hostNameInCertificate, serverCertificateFilename); diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs index c17a6f9bd4..bf8337cacb 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs @@ -140,7 +140,6 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) internal override void CreatePhysicalSNIHandle( string serverName, - bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, @@ -199,7 +198,7 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) SQLDNSInfo cachedDNSInfo; bool ret = SQLFallbackDNSCache.Instance.GetDNSInfo(cachedFQDN, out cachedDNSInfo); - _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer[0], ignoreSniOpenTimeout, checked((int)timeout), out instanceName, + _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer[0], checked((int)timeout), out instanceName, flushCache, !async, fParallel, ipPreference, cachedDNSInfo, hostNameInCertificate); } diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs index 74427d732a..fb0533fd4a 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs @@ -319,7 +319,7 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) _ = SQLFallbackDNSCache.Instance.GetDNSInfo(cachedFQDN, out SQLDNSInfo cachedDNSInfo); - _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer, ignoreSniOpenTimeout, checked((int)timeout), + _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer, checked((int)timeout), out instanceName, flushCache, !async, fParallel, transparentNetworkResolutionState, totalTimeout, ipPreference, cachedDNSInfo, hostNameInCertificate); } diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs index 21ae59c019..23f4be3504 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs @@ -150,7 +150,6 @@ internal sealed class SNIHandle : SafeHandle SNINativeMethodWrapper.ConsumerInfo myInfo, string serverName, byte[] spnBuffer, - bool ignoreSniOpenTimeout, int timeout, out byte[] instanceName, bool flushCache, @@ -174,14 +173,6 @@ internal sealed class SNIHandle : SafeHandle { _fSync = fSync; instanceName = new byte[256]; // Size as specified by netlibs. - if (ignoreSniOpenTimeout) - { - // UNDONE: ITEM12001110 (DB Mirroring Reconnect) Old behavior of not truly honoring timeout presevered - // for non-failover scenarios to avoid breaking changes as part of a QFE. Consider fixing timeout - // handling in next full release and removing ignoreSniOpenTimeout parameter. - timeout = Timeout.Infinite; // -1 == native SNIOPEN_TIMEOUT_VALUE / INFINITE - } - #if NETFRAMEWORK int transparentNetworkResolutionStateNo = (int)transparentNetworkResolutionState; _status = SNINativeMethodWrapper.SNIOpenSyncEx(myInfo, serverName, ref base.handle, diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs index 916cbf83b4..d35925aa03 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs @@ -248,5 +248,57 @@ public void ConnectionTestValidCredentialCombination() Assert.Equal(sqlCredential, conn.Credential); } + + [Theory] + [InlineData(60)] + [InlineData(30)] + [InlineData(15)] + [InlineData(10)] + [InlineData(5)] + [InlineData(1)] + public void ConnectionTimeoutTest(int timeout) + { + // Start a server with connection timeout from the inline data. + using TestTdsServer server = TestTdsServer.StartTestServer(false, false, timeout); + using SqlConnection connection = new SqlConnection(server.ConnectionString); + + // Dispose the server to force connection timeout + server.Dispose(); + + // Measure the actual time it took to timeout and compare it with configured timeout + var start = DateTime.Now; + var end = start; + + // Open a connection with the server disposed. + try + { + connection.Open(); + } + catch (Exception) + { + end = DateTime.Now; + } + + // Calculate actual duration of timeout + TimeSpan s = end - start; + // Did not time out? + if (s.TotalSeconds == 0) + Assert.True(s.TotalSeconds == 0); + + // Is actual time out the same as configured timeout or within an additional 3 second threshold because of overhead? + if (s.TotalSeconds > 0) + Assert.True(s.TotalSeconds <= timeout + 3); + } + + [Theory] + [InlineData(-5)] + public void ConnectionInvalidTimeoutTest(int timeout) + { + // Start a server with connection timeout from the inline data. + Assert.Throws(() => + { + using TestTdsServer server = TestTdsServer.StartTestServer(false, false, timeout); + }); + } } } From deac0685106822fb793c5ba295e22e61bad01632 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 16 Jun 2023 11:47:39 -0700 Subject: [PATCH 03/21] Revert "Add SqlConnectionEncryptOptionConverter class which is used to convert string Encrypt option into SqlConnectionEncryptionOption type." This reverts commit 5c505a1955f2e2966f58bad32011348b2d9de143. --- .../SqlConnectionEncryptOptionConverter.xml | 51 ---------- src/Microsoft.Data.SqlClient.sln | 1 - .../src/Microsoft.Data.SqlClient.csproj | 3 - .../netfx/src/Microsoft.Data.SqlClient.csproj | 3 - .../SqlClient/SqlConnectionEncryptOption.cs | 2 - .../SqlConnectionEncryptOptionConverter.cs | 46 --------- .../Microsoft.Data.SqlClient.Tests.csproj | 1 - .../SqlConnectionStringBuilderTest.cs | 93 ------------------- 8 files changed, 200 deletions(-) delete mode 100644 doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml delete mode 100644 src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml deleted file mode 100644 index 9f26bc71c7..0000000000 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Converts a string Sql Connection Encrypt option into SqlConnectionEncryptOption object - - - ## Remarks -Implicit conversions have been added to maintain backwards compatibility with boolean behahavior for the property. When converting from a boolean, a value of `true` converts to and a value of `false` converts to . When converting to a boolean, , , and `null` convert to `true` and converts `false`. - - - - - - If the source type is a string then conversion is allowed . - - A string containing the value to convert. - - if the parameter can be converted successfully; otherwise, . - - This method does not throw an exception. - - - - Converts the specified string representation of a logical value to its equivalent. - - A string containing the value to convert. - - An object that is equivalent to . - - - An object that is equivalent to with value of if conversion was successful; - otherwise, an exception is thrown. - - This method throws an exception if conversion fails. - - - - Converts an object value to its string representation. - - An object containing the value to convert. - - A string representation of the value of . - - - A string representation of the value of . - - This method does not throw an exception if conversion fails. - - - diff --git a/src/Microsoft.Data.SqlClient.sln b/src/Microsoft.Data.SqlClient.sln index a94447bf12..c5b34945a0 100644 --- a/src/Microsoft.Data.SqlClient.sln +++ b/src/Microsoft.Data.SqlClient.sln @@ -121,7 +121,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.Data.SqlClient", ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml - ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 90367cf55a..66791366f3 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -330,9 +330,6 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs - - Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs - Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 675dd57fe6..4492274116 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -422,9 +422,6 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs - - Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs - Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs index 997833437f..ecabdb9f04 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs @@ -3,13 +3,11 @@ // See the LICENSE file in the project root for more information. using System; -using System.ComponentModel; using Microsoft.Data.Common; namespace Microsoft.Data.SqlClient { /// - [TypeConverter(typeof(SqlConnectionEncryptOptionConverter))] public sealed class SqlConnectionEncryptOption { private const string TRUE = "True"; diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs deleted file mode 100644 index da5eb6f8a1..0000000000 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - - -using System; -using System.ComponentModel; -using System.Globalization; -using System.Drawing; - -namespace Microsoft.Data.SqlClient -{ - /// - public class SqlConnectionEncryptOptionConverter : TypeConverter - { - // Overrides the CanConvertFrom method of TypeConverter. - // The ITypeDescriptorContext interface provides the context for the - // conversion. Typically, this interface is used at design time to - // provide information about the design-time container. - /// - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) - { - if (sourceType == typeof(string)) - { - return true; - } - return base.CanConvertFrom(context, sourceType); - } - // Overrides the ConvertFrom method of TypeConverter. - /// - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) - { - if (value is string) - { - return SqlConnectionEncryptOption.Parse(value.ToString()); - } - throw new Exception("Value to convert must be of string type!"); - } - // Overrides the ConvertTo method of TypeConverter. - /// - public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) - { - return base.ConvertTo(context, culture, value, destinationType); - } - } -} diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj index 408d7ffa61..9d1e8d5087 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj @@ -66,7 +66,6 @@ - diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs index 591a426568..2bc842566a 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs @@ -4,12 +4,6 @@ using System; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.IO; -using System.Text; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; using Xunit; namespace Microsoft.Data.SqlClient.Tests @@ -474,36 +468,6 @@ public void EncryptTryParseInvalidValuesReturnsFalse(string value) Assert.Null(result); } - [Theory] - [InlineData("false","False")] - [InlineData("true", "True")] - [InlineData("strict", "Strict")] - [InlineData("mandatory","True")] - [InlineData("optional", "False")] - [InlineData("yes", "True")] - [InlineData("no", "False")] - [InlineData("absolutely", "True")] - [InlineData("affirmative", "True")] - [InlineData("never", "True")] - [InlineData("always", "True")] - [InlineData("none", "True")] - public void ConnectionStringFromJsonTests(string value, string expectedValue) - { - ExecuteConnectionStringFromJsonTests(value, expectedValue); - } - - [Theory] - [InlineData("absolutely")] - [InlineData("affirmative")] - [InlineData("never")] - [InlineData("always")] - [InlineData("none")] - [InlineData(" for sure ")] - public void ConnectionStringFromJsonThrowsException(string value) - { - ExecuteConnectionStringFromJsonThrowsException(value); - } - internal void ExecuteConnectionStringTests(string connectionString) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectionString); @@ -531,62 +495,5 @@ internal static void CheckEncryptType(SqlConnectionStringBuilder builder, SqlCon Assert.IsType(builder.Encrypt); Assert.Equal(expectedValue, builder.Encrypt); } - - internal void ExecuteConnectionStringFromJsonTests(string encryptOption, string result) - { - var settings = LoadSettingsFromJsonStream(encryptOption); - var connectionString = settings!.UserDb!.ToString(); - Assert.Contains($"Encrypt={result}", connectionString, StringComparison.InvariantCultureIgnoreCase); - } - - internal void ExecuteConnectionStringFromJsonThrowsException(string encryptOption) - { - Assert.Throws(() => LoadSettingsFromJsonStream(encryptOption)); - } - - TSettings LoadSettingsFromJsonStream(string encryptOption) where TSettings : class - { - TSettings settingsOut = null; - - Host.CreateDefaultBuilder() - .ConfigureAppConfiguration((ctx, configBuilder) => - { - // Note: Inside string interpolation, a { should be {{ and a } should be }} - // First, declare a stringified JSON - var json = $"{{ \"UserDb\": {{ \"UserComponents\": {{ \"NetworkLibrary\": \"DBMSSOCN\", \"UserID\": \"user\", \"Password\": \"password\", \"DataSource\": \"localhost\", \"InitialCatalog\": \"catalog\", \"Encrypt\": \"{encryptOption}\" }}}}}}"; - - // Load the stringified JSON as a stream into the configuration builder - configBuilder.AddJsonStream(new MemoryStream(Encoding.ASCII.GetBytes(json))); - configBuilder.AddEnvironmentVariables(); - }) - .ConfigureServices((ctx, services) => - { - var configuration = ctx.Configuration; - services.AddOptions(); - services.Configure(ctx.Configuration); - settingsOut = configuration.Get(); - }) - .Build(); - - return settingsOut; - } - } - - // These 2 classes will be used by ConnectionStringFromJsonTests only - internal class UserDbConnectionStringSettings - { - [Required] - public UserSqlConnectionString UserDb { get; set; } - } - - internal class UserSqlConnectionString - { - public SqlConnectionStringBuilder UserComponents { get; set; } = new(); - - public override string ToString() - { - return UserComponents!.ConnectionString; - } } - } From bf788581498f2646582ec3a255f411b557c3dc44 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 16 Jun 2023 11:58:18 -0700 Subject: [PATCH 04/21] Revert "Add SqlConnectionEncryptOptionConverter class which is used to convert string Encrypt option into SqlConnectionEncryptionOption type." This reverts commit 5c505a1955f2e2966f58bad32011348b2d9de143. --- .../SqlConnectionEncryptOptionConverter.xml | 51 ---------- src/Microsoft.Data.SqlClient.sln | 1 - .../src/Microsoft.Data.SqlClient.csproj | 3 - .../netfx/src/Microsoft.Data.SqlClient.csproj | 3 - .../SqlClient/SqlConnectionEncryptOption.cs | 2 - .../SqlConnectionEncryptOptionConverter.cs | 46 --------- .../Microsoft.Data.SqlClient.Tests.csproj | 1 - .../SqlConnectionStringBuilderTest.cs | 93 ------------------- 8 files changed, 200 deletions(-) delete mode 100644 doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml delete mode 100644 src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml deleted file mode 100644 index 9f26bc71c7..0000000000 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlConnectionEncryptOptionConverter.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Converts a string Sql Connection Encrypt option into SqlConnectionEncryptOption object - - - ## Remarks -Implicit conversions have been added to maintain backwards compatibility with boolean behahavior for the property. When converting from a boolean, a value of `true` converts to and a value of `false` converts to . When converting to a boolean, , , and `null` convert to `true` and converts `false`. - - - - - - If the source type is a string then conversion is allowed . - - A string containing the value to convert. - - if the parameter can be converted successfully; otherwise, . - - This method does not throw an exception. - - - - Converts the specified string representation of a logical value to its equivalent. - - A string containing the value to convert. - - An object that is equivalent to . - - - An object that is equivalent to with value of if conversion was successful; - otherwise, an exception is thrown. - - This method throws an exception if conversion fails. - - - - Converts an object value to its string representation. - - An object containing the value to convert. - - A string representation of the value of . - - - A string representation of the value of . - - This method does not throw an exception if conversion fails. - - - diff --git a/src/Microsoft.Data.SqlClient.sln b/src/Microsoft.Data.SqlClient.sln index a94447bf12..c5b34945a0 100644 --- a/src/Microsoft.Data.SqlClient.sln +++ b/src/Microsoft.Data.SqlClient.sln @@ -121,7 +121,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Microsoft.Data.SqlClient", ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionAttestationProtocol.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionColumnEncryptionSetting.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOption.xml - ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionEncryptOptionConverter.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlConnectionStringBuilder.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlCredential.xml ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml = ..\doc\snippets\Microsoft.Data.SqlClient\SqlDataAdapter.xml diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 90367cf55a..66791366f3 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -330,9 +330,6 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs - - Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs - Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 675dd57fe6..4492274116 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -422,9 +422,6 @@ Microsoft\Data\SqlClient\SqlConnectionEncryptOption.cs - - Microsoft\Data\SqlClient\SqlConnectionEncryptOptionConverter.cs - Microsoft\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs index 997833437f..ecabdb9f04 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOption.cs @@ -3,13 +3,11 @@ // See the LICENSE file in the project root for more information. using System; -using System.ComponentModel; using Microsoft.Data.Common; namespace Microsoft.Data.SqlClient { /// - [TypeConverter(typeof(SqlConnectionEncryptOptionConverter))] public sealed class SqlConnectionEncryptOption { private const string TRUE = "True"; diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs deleted file mode 100644 index da5eb6f8a1..0000000000 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionEncryptOptionConverter.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - - -using System; -using System.ComponentModel; -using System.Globalization; -using System.Drawing; - -namespace Microsoft.Data.SqlClient -{ - /// - public class SqlConnectionEncryptOptionConverter : TypeConverter - { - // Overrides the CanConvertFrom method of TypeConverter. - // The ITypeDescriptorContext interface provides the context for the - // conversion. Typically, this interface is used at design time to - // provide information about the design-time container. - /// - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) - { - if (sourceType == typeof(string)) - { - return true; - } - return base.CanConvertFrom(context, sourceType); - } - // Overrides the ConvertFrom method of TypeConverter. - /// - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) - { - if (value is string) - { - return SqlConnectionEncryptOption.Parse(value.ToString()); - } - throw new Exception("Value to convert must be of string type!"); - } - // Overrides the ConvertTo method of TypeConverter. - /// - public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) - { - return base.ConvertTo(context, culture, value, destinationType); - } - } -} diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj index 408d7ffa61..9d1e8d5087 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj @@ -66,7 +66,6 @@ - diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs index 591a426568..2bc842566a 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionStringBuilderTest.cs @@ -4,12 +4,6 @@ using System; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.IO; -using System.Text; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; using Xunit; namespace Microsoft.Data.SqlClient.Tests @@ -474,36 +468,6 @@ public void EncryptTryParseInvalidValuesReturnsFalse(string value) Assert.Null(result); } - [Theory] - [InlineData("false","False")] - [InlineData("true", "True")] - [InlineData("strict", "Strict")] - [InlineData("mandatory","True")] - [InlineData("optional", "False")] - [InlineData("yes", "True")] - [InlineData("no", "False")] - [InlineData("absolutely", "True")] - [InlineData("affirmative", "True")] - [InlineData("never", "True")] - [InlineData("always", "True")] - [InlineData("none", "True")] - public void ConnectionStringFromJsonTests(string value, string expectedValue) - { - ExecuteConnectionStringFromJsonTests(value, expectedValue); - } - - [Theory] - [InlineData("absolutely")] - [InlineData("affirmative")] - [InlineData("never")] - [InlineData("always")] - [InlineData("none")] - [InlineData(" for sure ")] - public void ConnectionStringFromJsonThrowsException(string value) - { - ExecuteConnectionStringFromJsonThrowsException(value); - } - internal void ExecuteConnectionStringTests(string connectionString) { SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectionString); @@ -531,62 +495,5 @@ internal static void CheckEncryptType(SqlConnectionStringBuilder builder, SqlCon Assert.IsType(builder.Encrypt); Assert.Equal(expectedValue, builder.Encrypt); } - - internal void ExecuteConnectionStringFromJsonTests(string encryptOption, string result) - { - var settings = LoadSettingsFromJsonStream(encryptOption); - var connectionString = settings!.UserDb!.ToString(); - Assert.Contains($"Encrypt={result}", connectionString, StringComparison.InvariantCultureIgnoreCase); - } - - internal void ExecuteConnectionStringFromJsonThrowsException(string encryptOption) - { - Assert.Throws(() => LoadSettingsFromJsonStream(encryptOption)); - } - - TSettings LoadSettingsFromJsonStream(string encryptOption) where TSettings : class - { - TSettings settingsOut = null; - - Host.CreateDefaultBuilder() - .ConfigureAppConfiguration((ctx, configBuilder) => - { - // Note: Inside string interpolation, a { should be {{ and a } should be }} - // First, declare a stringified JSON - var json = $"{{ \"UserDb\": {{ \"UserComponents\": {{ \"NetworkLibrary\": \"DBMSSOCN\", \"UserID\": \"user\", \"Password\": \"password\", \"DataSource\": \"localhost\", \"InitialCatalog\": \"catalog\", \"Encrypt\": \"{encryptOption}\" }}}}}}"; - - // Load the stringified JSON as a stream into the configuration builder - configBuilder.AddJsonStream(new MemoryStream(Encoding.ASCII.GetBytes(json))); - configBuilder.AddEnvironmentVariables(); - }) - .ConfigureServices((ctx, services) => - { - var configuration = ctx.Configuration; - services.AddOptions(); - services.Configure(ctx.Configuration); - settingsOut = configuration.Get(); - }) - .Build(); - - return settingsOut; - } - } - - // These 2 classes will be used by ConnectionStringFromJsonTests only - internal class UserDbConnectionStringSettings - { - [Required] - public UserSqlConnectionString UserDb { get; set; } - } - - internal class UserSqlConnectionString - { - public SqlConnectionStringBuilder UserComponents { get; set; } = new(); - - public override string ToString() - { - return UserComponents!.ConnectionString; - } } - } From 2028759dec35f61a043df1a09ecd7f1135194f83 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 16 Jun 2023 13:33:01 -0700 Subject: [PATCH 05/21] Revert "Fixed Issue #1126 .NET Core SqlConnection ConnectTimout 15 less than not work?" This reverts commit cde043009d57f456b90e2b4fa4faf8f0c6dabefd. --- build.proj | 2 +- .../Microsoft/Data/SqlClient/SNI/SNIProxy.cs | 2 + .../SqlClient/SqlInternalConnectionTds.cs | 4 ++ .../src/Microsoft/Data/SqlClient/TdsParser.cs | 3 ++ .../Data/SqlClient/TdsParserStateObject.cs | 1 + .../SqlClient/TdsParserStateObjectManaged.cs | 3 +- .../SqlClient/TdsParserStateObjectNative.cs | 3 +- .../Data/SqlClient/TdsParserStateObject.cs | 2 +- .../SqlClient/TdsParserSafeHandles.Windows.cs | 9 ++++ .../SqlConnectionBasicTests.cs | 52 ------------------- 10 files changed, 25 insertions(+), 56 deletions(-) diff --git a/build.proj b/build.proj index 465f9264c3..2e1ba19930 100644 --- a/build.proj +++ b/build.proj @@ -105,7 +105,7 @@ - $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType) + $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType)" diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs index 19659a2d93..ac4d3599dd 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs @@ -130,6 +130,7 @@ private static bool IsErrorStatus(SecurityStatusPalErrorCode errorCode) /// Create a SNI connection handle /// /// Full server name from connection string + /// Ignore open timeout /// Timer expiration /// Instance name /// SPN @@ -147,6 +148,7 @@ private static bool IsErrorStatus(SecurityStatusPalErrorCode errorCode) /// SNI handle internal static SNIHandle CreateConnectionHandle( string fullServerName, + bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs index 5e3a4ad25f..66631151c9 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnectionTds.cs @@ -1538,6 +1538,7 @@ private bool IsDoNotRetryConnectError(SqlException exc) AttemptOneLogin(serverInfo, newPassword, newSecurePassword, + !connectionOptions.MultiSubnetFailover, // ignore timeout for SniOpen call unless MSF connectionOptions.MultiSubnetFailover ? intervalTimer : timeout); if (connectionOptions.MultiSubnetFailover && null != ServerProvidedFailOverPartner) @@ -1776,6 +1777,7 @@ TimeoutTimer timeout currentServerInfo, newPassword, newSecurePassword, + false, // Use timeout in SniOpen intervalTimer, withFailover: true ); @@ -1903,6 +1905,7 @@ private void ResolveExtendedServerName(ServerInfo serverInfo, bool aliasLookup, ServerInfo serverInfo, string newPassword, SecureString newSecurePassword, + bool ignoreSniOpenTimeout, TimeoutTimer timeout, bool withFailover = false) { @@ -1913,6 +1916,7 @@ private void ResolveExtendedServerName(ServerInfo serverInfo, bool aliasLookup, _parser.Connect(serverInfo, this, + ignoreSniOpenTimeout, timeout.LegacyTimerExpire, ConnectionOptions, withFailover); diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs index e9e3388ef8..c83587ab4c 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs @@ -361,6 +361,7 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) internal void Connect( ServerInfo serverInfo, SqlInternalConnectionTds connHandler, + bool ignoreSniOpenTimeout, long timerExpire, SqlConnectionString connectionOptions, bool withFailover) @@ -444,6 +445,7 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) // AD Integrated behaves like Windows integrated when connecting to a non-fedAuth server _physicalStateObj.CreatePhysicalSNIHandle( serverInfo.ExtendedServerName, + ignoreSniOpenTimeout, timerExpire, out instanceName, ref _sniSpnBuffer, @@ -542,6 +544,7 @@ internal void ProcessPendingAck(TdsParserStateObject stateObj) _physicalStateObj.CreatePhysicalSNIHandle( serverInfo.ExtendedServerName, + ignoreSniOpenTimeout, timerExpire, out instanceName, ref _sniSpnBuffer, true, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs index dd37579205..bc7cd362a8 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs @@ -197,6 +197,7 @@ private void ResetCancelAndProcessAttention() internal abstract void CreatePhysicalSNIHandle( string serverName, + bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs index e0b4765b6b..f219e75406 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectManaged.cs @@ -77,6 +77,7 @@ protected override uint SNIPacketGetData(PacketHandle packet, byte[] inBuff, ref internal override void CreatePhysicalSNIHandle( string serverName, + bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, @@ -92,7 +93,7 @@ protected override uint SNIPacketGetData(PacketHandle packet, byte[] inBuff, ref string hostNameInCertificate, string serverCertificateFilename) { - SNIHandle? sessionHandle = SNIProxy.CreateConnectionHandle(serverName, timerExpire, out instanceName, ref spnBuffer, serverSPN, + SNIHandle? sessionHandle = SNIProxy.CreateConnectionHandle(serverName, ignoreSniOpenTimeout, timerExpire, out instanceName, ref spnBuffer, serverSPN, flushCache, async, parallel, isIntegratedSecurity, iPAddressPreference, cachedFQDN, ref pendingDNSInfo, tlsFirst, hostNameInCertificate, serverCertificateFilename); diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs index bf8337cacb..c17a6f9bd4 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs @@ -140,6 +140,7 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) internal override void CreatePhysicalSNIHandle( string serverName, + bool ignoreSniOpenTimeout, long timerExpire, out byte[] instanceName, ref byte[][] spnBuffer, @@ -198,7 +199,7 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) SQLDNSInfo cachedDNSInfo; bool ret = SQLFallbackDNSCache.Instance.GetDNSInfo(cachedFQDN, out cachedDNSInfo); - _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer[0], checked((int)timeout), out instanceName, + _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer[0], ignoreSniOpenTimeout, checked((int)timeout), out instanceName, flushCache, !async, fParallel, ipPreference, cachedDNSInfo, hostNameInCertificate); } diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs index fb0533fd4a..74427d732a 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs @@ -319,7 +319,7 @@ private SNINativeMethodWrapper.ConsumerInfo CreateConsumerInfo(bool async) _ = SQLFallbackDNSCache.Instance.GetDNSInfo(cachedFQDN, out SQLDNSInfo cachedDNSInfo); - _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer, checked((int)timeout), + _sessionHandle = new SNIHandle(myInfo, serverName, spnBuffer, ignoreSniOpenTimeout, checked((int)timeout), out instanceName, flushCache, !async, fParallel, transparentNetworkResolutionState, totalTimeout, ipPreference, cachedDNSInfo, hostNameInCertificate); } diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs index 23f4be3504..21ae59c019 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserSafeHandles.Windows.cs @@ -150,6 +150,7 @@ internal sealed class SNIHandle : SafeHandle SNINativeMethodWrapper.ConsumerInfo myInfo, string serverName, byte[] spnBuffer, + bool ignoreSniOpenTimeout, int timeout, out byte[] instanceName, bool flushCache, @@ -173,6 +174,14 @@ internal sealed class SNIHandle : SafeHandle { _fSync = fSync; instanceName = new byte[256]; // Size as specified by netlibs. + if (ignoreSniOpenTimeout) + { + // UNDONE: ITEM12001110 (DB Mirroring Reconnect) Old behavior of not truly honoring timeout presevered + // for non-failover scenarios to avoid breaking changes as part of a QFE. Consider fixing timeout + // handling in next full release and removing ignoreSniOpenTimeout parameter. + timeout = Timeout.Infinite; // -1 == native SNIOPEN_TIMEOUT_VALUE / INFINITE + } + #if NETFRAMEWORK int transparentNetworkResolutionStateNo = (int)transparentNetworkResolutionState; _status = SNINativeMethodWrapper.SNIOpenSyncEx(myInfo, serverName, ref base.handle, diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs index d35925aa03..916cbf83b4 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs @@ -248,57 +248,5 @@ public void ConnectionTestValidCredentialCombination() Assert.Equal(sqlCredential, conn.Credential); } - - [Theory] - [InlineData(60)] - [InlineData(30)] - [InlineData(15)] - [InlineData(10)] - [InlineData(5)] - [InlineData(1)] - public void ConnectionTimeoutTest(int timeout) - { - // Start a server with connection timeout from the inline data. - using TestTdsServer server = TestTdsServer.StartTestServer(false, false, timeout); - using SqlConnection connection = new SqlConnection(server.ConnectionString); - - // Dispose the server to force connection timeout - server.Dispose(); - - // Measure the actual time it took to timeout and compare it with configured timeout - var start = DateTime.Now; - var end = start; - - // Open a connection with the server disposed. - try - { - connection.Open(); - } - catch (Exception) - { - end = DateTime.Now; - } - - // Calculate actual duration of timeout - TimeSpan s = end - start; - // Did not time out? - if (s.TotalSeconds == 0) - Assert.True(s.TotalSeconds == 0); - - // Is actual time out the same as configured timeout or within an additional 3 second threshold because of overhead? - if (s.TotalSeconds > 0) - Assert.True(s.TotalSeconds <= timeout + 3); - } - - [Theory] - [InlineData(-5)] - public void ConnectionInvalidTimeoutTest(int timeout) - { - // Start a server with connection timeout from the inline data. - Assert.Throws(() => - { - using TestTdsServer server = TestTdsServer.StartTestServer(false, false, timeout); - }); - } } } From 4ce5bd9baec4d069161faa4a3f6b22bec1e13ebf Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 18 Jul 2023 10:22:30 -0700 Subject: [PATCH 06/21] Moved Strings.resx to ../../src/Resources folder. Changed csproj to make Strings.resx shows up under netcore/src/Resources and netfx/src/Resources still. Change netfx csproj RootNamespace to Microsoft.Data.SqlClient. --- src/Directory.Build.props | 2 +- .../src/Microsoft.Data.SqlClient.csproj | 14 +- .../netcore/src/Resources/Strings.Designer.cs | 5562 ----------------- .../netcore/src/Resources/Strings.resx | 1953 ------ .../netfx/src/Microsoft.Data.SqlClient.csproj | 20 +- .../src/Resources/Strings.Designer.cs | 255 +- .../{netfx => }/src/Resources/Strings.de.resx | 0 .../{netfx => }/src/Resources/Strings.es.resx | 0 .../{netfx => }/src/Resources/Strings.fr.resx | 0 .../{netfx => }/src/Resources/Strings.it.resx | 0 .../{netfx => }/src/Resources/Strings.ja.resx | 0 .../{netfx => }/src/Resources/Strings.ko.resx | 0 .../src/Resources/Strings.pt-BR.resx | 0 .../{netfx => }/src/Resources/Strings.resx | 84 + .../{netfx => }/src/Resources/Strings.ru.resx | 0 .../src/Resources/Strings.zh-Hans.resx | 0 .../src/Resources/Strings.zh-Hant.resx | 0 17 files changed, 362 insertions(+), 7528 deletions(-) delete mode 100644 src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.Designer.cs delete mode 100644 src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.resx rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.Designer.cs (98%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.de.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.es.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.fr.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.it.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.ja.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.ko.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.pt-BR.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.resx (98%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.ru.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.zh-Hans.resx (100%) rename src/Microsoft.Data.SqlClient/{netfx => }/src/Resources/Strings.zh-Hant.resx (100%) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index afcf503118..7b52e06e34 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -44,7 +44,7 @@ $(ProjectDir)Microsoft.SqlServer.Server\ $(ManagedSourceCode)netcore\ $(ManagedSourceCode)netfx\ - $(ManagedSourceCode)netfx\src\Resources\ + $(ManagedSourceCode)src\Resources\ $(ManagedSourceCode)add-ons\ $(RepoRoot)src\Microsoft.SqlServer.Server\ $(Artifacts)obj\ diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index a835e69023..04cc6dd62f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -495,9 +495,11 @@ Microsoft\Data\SqlClient\SqlStream.cs - + + Resources\ResCategoryAttribute.cs + Resources\ResDescriptionAttribute.cs @@ -571,19 +573,25 @@ + Resources\StringsHelper.NetCore.cs - + + + Resources\Strings.Designer.cs True True Strings.resx - + + + Resources\Strings.resx ResXFileCodeGenerator Strings.Designer.cs System + Common\CoreLib\System\Threading\Tasks\TaskToApm.cs diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.Designer.cs deleted file mode 100644 index cf900c4553..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.Designer.cs +++ /dev/null @@ -1,5562 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace System { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Strings { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Strings() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Data.SqlClient.Resources.Strings", typeof(Strings).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Connection timed out while retrieving an access token using '{0}' authentication method. Last error: {1}: {2}. - /// - internal static string AAD_Token_Retrieving_Timeout { - get { - return ResourceManager.GetString("AAD_Token_Retrieving_Timeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified parameter name '{0}' is not valid.. - /// - internal static string ADP_BadParameterName { - get { - return ResourceManager.GetString("ADP_BadParameterName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The method '{0}' cannot be called more than once for the same execution.. - /// - internal static string ADP_CalledTwice { - get { - return ResourceManager.GetString("ADP_CalledTwice", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid operation. The connection is closed.. - /// - internal static string ADP_ClosedConnectionError { - get { - return ResourceManager.GetString("ADP_ClosedConnectionError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid index {0} for this {1} with Count={2}.. - /// - internal static string ADP_CollectionIndexInt32 { - get { - return ResourceManager.GetString("ADP_CollectionIndexInt32", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A {0} with {1} '{2}' is not contained by this {3}.. - /// - internal static string ADP_CollectionIndexString { - get { - return ResourceManager.GetString("ADP_CollectionIndexString", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} only accepts non-null {1} type objects, not {2} objects.. - /// - internal static string ADP_CollectionInvalidType { - get { - return ResourceManager.GetString("ADP_CollectionInvalidType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} is already contained by another {1}.. - /// - internal static string ADP_CollectionIsNotParent { - get { - return ResourceManager.GetString("ADP_CollectionIsNotParent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} only accepts non-null {1} type objects.. - /// - internal static string ADP_CollectionNullValue { - get { - return ResourceManager.GetString("ADP_CollectionNullValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attempted to remove an {0} that is not contained by this {1}.. - /// - internal static string ADP_CollectionRemoveInvalidObject { - get { - return ResourceManager.GetString("ADP_CollectionRemoveInvalidObject", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}: CommandText property has not been initialized. - /// - internal static string ADP_CommandTextRequired { - get { - return ResourceManager.GetString("ADP_CommandTextRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection was not closed. {0}. - /// - internal static string ADP_ConnectionAlreadyOpen { - get { - return ResourceManager.GetString("ADP_ConnectionAlreadyOpen", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection has been disabled.. - /// - internal static string ADP_ConnectionIsDisabled { - get { - return ResourceManager.GetString("ADP_ConnectionIsDisabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}: Connection property has not been initialized.. - /// - internal static string ADP_ConnectionRequired { - get { - return ResourceManager.GetString("ADP_ConnectionRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state: {0}.. - /// - internal static string ADP_ConnectionStateMsg { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state is closed.. - /// - internal static string ADP_ConnectionStateMsg_Closed { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg_Closed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state is connecting.. - /// - internal static string ADP_ConnectionStateMsg_Connecting { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg_Connecting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state is open.. - /// - internal static string ADP_ConnectionStateMsg_Open { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg_Open", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state is executing.. - /// - internal static string ADP_ConnectionStateMsg_OpenExecuting { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg_OpenExecuting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection's current state is fetching.. - /// - internal static string ADP_ConnectionStateMsg_OpenFetching { - get { - return ResourceManager.GetString("ADP_ConnectionStateMsg_OpenFetching", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Format of the initialization string does not conform to specification starting at index {0}.. - /// - internal static string ADP_ConnectionStringSyntax { - get { - return ResourceManager.GetString("ADP_ConnectionStringSyntax", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to call {0} when reader is closed.. - /// - internal static string ADP_DataReaderClosed { - get { - return ResourceManager.GetString("ADP_DataReaderClosed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No mapping exists from DbType {0} to a known {1}.. - /// - internal static string ADP_DbTypeNotSupported { - get { - return ResourceManager.GetString("ADP_DbTypeNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType. {1}.. - /// - internal static string ADP_DeriveParametersNotSupported { - get { - return ResourceManager.GetString("ADP_DeriveParametersNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The acceptable values for the property '{0}' are '{1}' or '{2}'.. - /// - internal static string ADP_DoubleValuedProperty { - get { - return ResourceManager.GetString("ADP_DoubleValuedProperty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Database cannot be null, the empty string, or string of only whitespace.. - /// - internal static string ADP_EmptyDatabaseName { - get { - return ResourceManager.GetString("ADP_EmptyDatabaseName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal DbConnection Error: {0}. - /// - internal static string ADP_InternalConnectionError { - get { - return ResourceManager.GetString("ADP_InternalConnectionError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal .NET Framework Data Provider error {0}.. - /// - internal static string ADP_InternalProviderError { - get { - return ResourceManager.GetString("ADP_InternalProviderError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The length of argument '{0}' exceeds its limit of '{1}'.. - /// - internal static string ADP_InvalidArgumentLength { - get { - return ResourceManager.GetString("ADP_InvalidArgumentLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid CommandTimeout value {0}; the value must be >= 0.. - /// - internal static string ADP_InvalidCommandTimeout { - get { - return ResourceManager.GetString("ADP_InvalidCommandTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid value for key '{0}'.. - /// - internal static string ADP_InvalidConnectionOptionValue { - get { - return ResourceManager.GetString("ADP_InvalidConnectionOptionValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The value's length for key '{0}' exceeds its limit of '{1}'.. - /// - internal static string ADP_InvalidConnectionOptionValueLength { - get { - return ResourceManager.GetString("ADP_InvalidConnectionOptionValueLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The DataDirectory substitute is not a string.. - /// - internal static string ADP_InvalidDataDirectory { - get { - return ResourceManager.GetString("ADP_InvalidDataDirectory", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified length '{0}' is out of range.. - /// - internal static string ADP_InvalidDataLength2 { - get { - return ResourceManager.GetString("ADP_InvalidDataLength2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The parameter data type of {0} is invalid.. - /// - internal static string ADP_InvalidDataType { - get { - return ResourceManager.GetString("ADP_InvalidDataType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid destination buffer (size of {0}) offset: {1}. - /// - internal static string ADP_InvalidDestinationBufferIndex { - get { - return ResourceManager.GetString("ADP_InvalidDestinationBufferIndex", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} enumeration value, {1}, is invalid.. - /// - internal static string ADP_InvalidEnumerationValue { - get { - return ResourceManager.GetString("ADP_InvalidEnumerationValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid value for this metadata.. - /// - internal static string ADP_InvalidMetaDataValue { - get { - return ResourceManager.GetString("ADP_InvalidMetaDataValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid min or max pool size values, min pool size cannot be greater than the max pool size.. - /// - internal static string ADP_InvalidMinMaxPoolSizeValues { - get { - return ResourceManager.GetString("ADP_InvalidMinMaxPoolSizeValues", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessToken property if 'Authentication' has been specified in the connection string.. - /// - internal static string ADP_InvalidMixedUsageOfAccessTokenAndAuthentication { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAccessTokenAndAuthentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessToken property if the 'Integrated Security' connection string keyword has been set to 'true' or 'SSPI'.. - /// - internal static string ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessToken property if the AccessTokenCallback has been set.. - /// - internal static string ADP_InvalidMixedUsageOfAccessTokenAndTokenCallback { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAccessTokenAndTokenCallback", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessToken property if 'UserID', 'UID', 'Password', or 'PWD' has been specified in connection string.. - /// - internal static string ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessTokenCallback property if the 'Integrated Security' connection string keyword has been set to 'true' or 'SSPI'.. - /// - internal static string ADP_InvalidMixedUsageOfAccessTokenCallbackAndIntegratedSecurity { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAccessTokenCallbackAndIntegratedSecurity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the AccessTokenCallback property if 'Authentication=Active Directory Default' has been specified in the connection string.. - /// - internal static string ADP_InvalidMixedUsageOfAuthenticationAndTokenCallback { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfAuthenticationAndTokenCallback", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the Credential property if the AccessToken property is already set.. - /// - internal static string ADP_InvalidMixedUsageOfCredentialAndAccessToken { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfCredentialAndAccessToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use Credential with UserID, UID, Password, or PWD connection string keywords.. - /// - internal static string ADP_InvalidMixedUsageOfSecureAndClearCredential { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfSecureAndClearCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use Credential with Integrated Security connection string keyword.. - /// - internal static string ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity { - get { - return ResourceManager.GetString("ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} '{1}'.. - /// - internal static string ADP_InvalidMultipartName { - get { - return ResourceManager.GetString("ADP_InvalidMultipartName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} '{1}', incorrect usage of quotes.. - /// - internal static string ADP_InvalidMultipartNameQuoteUsage { - get { - return ResourceManager.GetString("ADP_InvalidMultipartNameQuoteUsage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} '{1}', the current limit of '{2}' is insufficient.. - /// - internal static string ADP_InvalidMultipartNameToManyParts { - get { - return ResourceManager.GetString("ADP_InvalidMultipartNameToManyParts", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid parameter Offset value '{0}'. The value must be greater than or equal to 0.. - /// - internal static string ADP_InvalidOffsetValue { - get { - return ResourceManager.GetString("ADP_InvalidOffsetValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified QuotePrefix and QuoteSuffix values do not match.. - /// - internal static string ADP_InvalidPrefixSuffix { - get { - return ResourceManager.GetString("ADP_InvalidPrefixSuffix", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified SeekOrigin value is invalid.. - /// - internal static string ADP_InvalidSeekOrigin { - get { - return ResourceManager.GetString("ADP_InvalidSeekOrigin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid parameter Size value '{0}'. The value must be greater than or equal to 0.. - /// - internal static string ADP_InvalidSizeValue { - get { - return ResourceManager.GetString("ADP_InvalidSizeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid source buffer (size of {0}) offset: {1}. - /// - internal static string ADP_InvalidSourceBufferIndex { - get { - return ResourceManager.GetString("ADP_InvalidSourceBufferIndex", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Keyword not supported: '{0}'.. - /// - internal static string ADP_KeywordNotSupported { - get { - return ResourceManager.GetString("ADP_KeywordNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry.. - /// - internal static string ADP_LocalTransactionPresent { - get { - return ResourceManager.GetString("ADP_LocalTransactionPresent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Mismatched end method call for asyncResult. Expected call to {0} but {1} was called instead.. - /// - internal static string ADP_MismatchedAsyncResult { - get { - return ResourceManager.GetString("ADP_MismatchedAsyncResult", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Use of key '{0}' requires the key '{1}' to be present.. - /// - internal static string ADP_MissingConnectionOptionValue { - get { - return ResourceManager.GetString("ADP_MissingConnectionOptionValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} must be marked as read only.. - /// - internal static string ADP_MustBeReadOnly { - get { - return ResourceManager.GetString("ADP_MustBeReadOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid value for argument '{0}'. The value must be greater than or equal to 0.. - /// - internal static string ADP_NegativeParameter { - get { - return ResourceManager.GetString("ADP_NegativeParameter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The ConnectionString property has not been initialized.. - /// - internal static string ADP_NoConnectionString { - get { - return ResourceManager.GetString("ADP_NoConnectionString", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded. This may have occurred because of too many simultaneous non-pooled connection attempts.. - /// - internal static string ADP_NonPooledOpenTimeout { - get { - return ResourceManager.GetString("ADP_NonPooledOpenTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid {2} attempt at dataIndex '{0}'. With CommandBehavior.SequentialAccess, you may only read from dataIndex '{1}' or greater.. - /// - internal static string ADP_NonSeqByteAccess { - get { - return ResourceManager.GetString("ADP_NonSeqByteAccess", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to read from column ordinal '{0}'. With CommandBehavior.SequentialAccess, you may only read from column ordinal '{1}' or greater.. - /// - internal static string ADP_NonSequentialColumnAccess { - get { - return ResourceManager.GetString("ADP_NonSequentialColumnAccess", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The stored procedure '{0}' doesn't exist.. - /// - internal static string ADP_NoStoredProcedureExists { - get { - return ResourceManager.GetString("ADP_NoStoredProcedureExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} enumeration value, {1}, is not supported by the {2} method.. - /// - internal static string ADP_NotSupportedEnumerationValue { - get { - return ResourceManager.GetString("ADP_NotSupportedEnumerationValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Not allowed to change the '{0}' property. {1}. - /// - internal static string ADP_OpenConnectionPropertySet { - get { - return ResourceManager.GetString("ADP_OpenConnectionPropertySet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} requires an open and available Connection. {1}. - /// - internal static string ADP_OpenConnectionRequired { - get { - return ResourceManager.GetString("ADP_OpenConnectionRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There is already an open DataReader associated with this {0} which must be closed first.. - /// - internal static string ADP_OpenReaderExists { - get { - return ResourceManager.GetString("ADP_OpenReaderExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Operation aborted.. - /// - internal static string ADP_OperationAborted { - get { - return ResourceManager.GetString("ADP_OperationAborted", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Operation aborted due to an exception (see InnerException for details).. - /// - internal static string ADP_OperationAbortedExceptionMessage { - get { - return ResourceManager.GetString("ADP_OperationAbortedExceptionMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} does not support parallel transactions.. - /// - internal static string ADP_ParallelTransactionsNotSupported { - get { - return ResourceManager.GetString("ADP_ParallelTransactionsNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to convert parameter value from a {0} to a {1}.. - /// - internal static string ADP_ParameterConversionFailed { - get { - return ResourceManager.GetString("ADP_ParameterConversionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Parameter value '{0}' is out of range.. - /// - internal static string ADP_ParameterValueOutOfRange { - get { - return ResourceManager.GetString("ADP_ParameterValueOutOfRange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Can not start another operation while there is an asynchronous operation pending.. - /// - internal static string ADP_PendingAsyncOperation { - get { - return ResourceManager.GetString("ADP_PendingAsyncOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.. - /// - internal static string ADP_PooledOpenTimeout { - get { - return ResourceManager.GetString("ADP_PooledOpenTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}.Prepare method requires parameters of type '{1}' have an explicitly set Precision and Scale.. - /// - internal static string ADP_PrepareParameterScale { - get { - return ResourceManager.GetString("ADP_PrepareParameterScale", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.. - /// - internal static string ADP_PrepareParameterSize { - get { - return ResourceManager.GetString("ADP_PrepareParameterSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0}.Prepare method requires all parameters to have an explicitly set type.. - /// - internal static string ADP_PrepareParameterType { - get { - return ResourceManager.GetString("ADP_PrepareParameterType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The only acceptable value for the property '{0}' is '{1}'.. - /// - internal static string ADP_SingleValuedProperty { - get { - return ResourceManager.GetString("ADP_SingleValuedProperty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to {0} when stream is closed.. - /// - internal static string ADP_StreamClosed { - get { - return ResourceManager.GetString("ADP_StreamClosed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.. - /// - internal static string ADP_TransactionCompletedButNotDisposed { - get { - return ResourceManager.GetString("ADP_TransactionCompletedButNotDisposed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The transaction is either not associated with the current connection or has been completed.. - /// - internal static string ADP_TransactionConnectionMismatch { - get { - return ResourceManager.GetString("ADP_TransactionConnectionMismatch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection currently has transaction enlisted. Finish current transaction and retry.. - /// - internal static string ADP_TransactionPresent { - get { - return ResourceManager.GetString("ADP_TransactionPresent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.. - /// - internal static string ADP_TransactionRequired { - get { - return ResourceManager.GetString("ADP_TransactionRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This {0} has completed; it is no longer usable.. - /// - internal static string ADP_TransactionZombied { - get { - return ResourceManager.GetString("ADP_TransactionZombied", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {1}[{0}]: the Size property has an invalid size of 0.. - /// - internal static string ADP_UninitializedParameterSize { - get { - return ResourceManager.GetString("ADP_UninitializedParameterSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No mapping exists from object type {0} to a known managed provider native type.. - /// - internal static string ADP_UnknownDataType { - get { - return ResourceManager.GetString("ADP_UnknownDataType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to handle an unknown TypeCode {0} returned by Type {1}.. - /// - internal static string ADP_UnknownDataTypeCode { - get { - return ResourceManager.GetString("ADP_UnknownDataTypeCode", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The version of SQL Server in use does not support datatype '{0}'.. - /// - internal static string ADP_VersionDoesNotSupportDataType { - get { - return ResourceManager.GetString("ADP_VersionDoesNotSupportDataType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Destination array is not long enough to copy all the items in the collection. Check array index and length.. - /// - internal static string Arg_ArrayPlusOffTooSmall { - get { - return ResourceManager.GetString("Arg_ArrayPlusOffTooSmall", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Only single dimensional arrays are supported for the requested action.. - /// - internal static string Arg_RankMultiDimNotSupported { - get { - return ResourceManager.GetString("Arg_RankMultiDimNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot remove the specified item because it was not found in the specified Collection.. - /// - internal static string Arg_RemoveArgNotFound { - get { - return ResourceManager.GetString("Arg_RemoveArgNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Non-negative number required.. - /// - internal static string ArgumentOutOfRange_NeedNonNegNum { - get { - return ResourceManager.GetString("ArgumentOutOfRange_NeedNonNegNum", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed. The token signature does not match the signature computed using a public key retrieved from the attestation public key endpoint at '{0}'. Verify the DNS mapping for the endpoint - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If correct, contact Customer Support Services.. - /// - internal static string AttestationTokenSignatureValidationFailed { - get { - return ResourceManager.GetString("AttestationTokenSignatureValidationFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to .database.chinacloudapi.cn. - /// - internal static string AZURESQL_ChinaEndpoint { - get { - return ResourceManager.GetString("AZURESQL_ChinaEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to .database.windows.net. - /// - internal static string AZURESQL_GenericEndpoint { - get { - return ResourceManager.GetString("AZURESQL_GenericEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to .database.cloudapi.de. - /// - internal static string AZURESQL_GermanEndpoint { - get { - return ResourceManager.GetString("AZURESQL_GermanEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to .database.usgovcloudapi.net. - /// - internal static string AZURESQL_UsGovEndpoint { - get { - return ResourceManager.GetString("AZURESQL_UsGovEndpoint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.. - /// - internal static string Data_InvalidOffsetLength { - get { - return ResourceManager.GetString("Data_InvalidOffsetLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error occurred when retrying the download of the HGS root certificate after the initial request failed. Contact Customer Support Services.. - /// - internal static string EnclaveRetrySleepInSecondsValueException { - get { - return ResourceManager.GetString("EnclaveRetrySleepInSecondsValueException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Unable to invalidate the requested enclave session, because it does not exist in the cache. Contact Customer Support Services.. - /// - internal static string EnclaveSessionInvalidationFailed { - get { - return ResourceManager.GetString("EnclaveSessionInvalidationFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} returned {1}.. - /// - internal static string event_OperationReturnedSomething { - get { - return ResourceManager.GetString("event_OperationReturnedSomething", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed. The token received from SQL Server is expired. Contact Customer Support Services.. - /// - internal static string ExpiredAttestationToken { - get { - return ResourceManager.GetString("ExpiredAttestationToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to create enclave session as attestation server is busy.. - /// - internal static string FailToCreateEnclaveSession { - get { - return ResourceManager.GetString("FailToCreateEnclaveSession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation information failed. The attestation information has an invalid format. Contact Customer Support Services. Error details: '{0}'.. - /// - internal static string FailToParseAttestationInfo { - get { - return ResourceManager.GetString("FailToParseAttestationInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed. The token has an invalid format. Contact Customer Support Services. Error details: '{0}'.. - /// - internal static string FailToParseAttestationToken { - get { - return ResourceManager.GetString("FailToParseAttestationToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The attestation service returned an expired HGS root certificate for attestation URL '{0}'. Check the HGS root certificate configured for your HGS instance - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details.. - /// - internal static string GetAttestationSigningCertificateFailedInvalidCertificate { - get { - return ResourceManager.GetString("GetAttestationSigningCertificateFailedInvalidCertificate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The obtained HGS root certificate for attestation URL '{0}' has an invalid format. Verify the attestation URL is correct and the HGS server is online and fully initialized - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. For more information contact Customer Support Services. Error details: '{1}'.. - /// - internal static string GetAttestationSigningCertificateRequestFailedFormat { - get { - return ResourceManager.GetString("GetAttestationSigningCertificateRequestFailedFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed. Cannot retrieve a public key from the attestation public key endpoint, or the retrieved key has an invalid format. Error details: '{0}'.. - /// - internal static string GetAttestationTokenSigningKeysFailed { - get { - return ResourceManager.GetString("GetAttestationTokenSigningKeysFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Signature verification of the enclave's Diffie-Hellman key failed. Contact Customer Support Services.. - /// - internal static string GetSharedSecretFailed { - get { - return ResourceManager.GetString("GetSharedSecretFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Global Transactions are not enabled for this Azure SQL Database. Please contact Azure SQL Database support for assistance.. - /// - internal static string GT_Disabled { - get { - return ResourceManager.GetString("GT_Disabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference for the value instead.. - /// - internal static string IEnumerableOfSqlDataRecordHasNoRows { - get { - return ResourceManager.GetString("IEnumerableOfSqlDataRecordHasNoRows", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed due to an error while decoding the enclave public key obtained from SQL Server. Contact Customer Support Services.. - /// - internal static string InvalidArgumentToBase64UrlDecoder { - get { - return ResourceManager.GetString("InvalidArgumentToBase64UrlDecoder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed due to an error while computing a hash of the enclave public key obtained from SQL Server. Contact Customer Support Services.. - /// - internal static string InvalidArgumentToSHA256 { - get { - return ResourceManager.GetString("InvalidArgumentToSHA256", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of the attestation token has failed during signature validation. Exception: '{0}'.. - /// - internal static string InvalidAttestationToken { - get { - return ResourceManager.GetString("InvalidAttestationToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of an attestation token failed. Claim '{0}' in the token has an invalid value of '{1}'. Verify the attestation policy - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If the policy is correct, contact Customer Support Services.. - /// - internal static string InvalidClaimInAttestationToken { - get { - return ResourceManager.GetString("InvalidClaimInAttestationToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid column ordinals in schema table. ColumnOrdinals, if present, must not have duplicates or gaps.. - /// - internal static string InvalidSchemaTableOrdinals { - get { - return ResourceManager.GetString("InvalidSchemaTableOrdinals", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Local Database Runtime: Cannot load SQLUserInstance.dll.. - /// - internal static string LocalDB_FailedGetDLLHandle { - get { - return ResourceManager.GetString("LocalDB_FailedGetDLLHandle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.. - /// - internal static string LocalDB_MethodNotFound { - get { - return ResourceManager.GetString("LocalDB_MethodNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot obtain Local Database Runtime error message. - /// - internal static string LocalDB_UnobtainableMessage { - get { - return ResourceManager.GetString("LocalDB_UnobtainableMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to LocalDB is not supported on this platform.. - /// - internal static string LocalDBNotSupported { - get { - return ResourceManager.GetString("LocalDBNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.. - /// - internal static string MDF_AmbiguousCollectionName { - get { - return ResourceManager.GetString("MDF_AmbiguousCollectionName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are multiple collections named '{0}'.. - /// - internal static string MDF_CollectionNameISNotUnique { - get { - return ResourceManager.GetString("MDF_CollectionNameISNotUnique", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The collection '{0}' is missing from the metadata XML.. - /// - internal static string MDF_DataTableDoesNotExist { - get { - return ResourceManager.GetString("MDF_DataTableDoesNotExist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The DataSourceInformation table must contain exactly one row.. - /// - internal static string MDF_IncorrectNumberOfDataSourceInformationRows { - get { - return ResourceManager.GetString("MDF_IncorrectNumberOfDataSourceInformationRows", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The metadata XML is invalid.. - /// - internal static string MDF_InvalidXml { - get { - return ResourceManager.GetString("MDF_InvalidXml", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string.. - /// - internal static string MDF_InvalidXmlInvalidValue { - get { - return ResourceManager.GetString("MDF_InvalidXmlInvalidValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column.. - /// - internal static string MDF_InvalidXmlMissingColumn { - get { - return ResourceManager.GetString("MDF_InvalidXmlMissingColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to One of the required DataSourceInformation tables columns is missing.. - /// - internal static string MDF_MissingDataSourceInformationColumn { - get { - return ResourceManager.GetString("MDF_MissingDataSourceInformationColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to One or more of the required columns of the restrictions collection is missing.. - /// - internal static string MDF_MissingRestrictionColumn { - get { - return ResourceManager.GetString("MDF_MissingRestrictionColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A restriction exists for which there is no matching row in the restrictions collection.. - /// - internal static string MDF_MissingRestrictionRow { - get { - return ResourceManager.GetString("MDF_MissingRestrictionRow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The schema table contains no columns.. - /// - internal static string MDF_NoColumns { - get { - return ResourceManager.GetString("MDF_NoColumns", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to build the '{0}' collection because execution of the SQL query failed. See the inner exception for details.. - /// - internal static string MDF_QueryFailed { - get { - return ResourceManager.GetString("MDF_QueryFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to More restrictions were provided than the requested schema ('{0}') supports.. - /// - internal static string MDF_TooManyRestrictions { - get { - return ResourceManager.GetString("MDF_TooManyRestrictions", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to build schema collection '{0}';. - /// - internal static string MDF_UnableToBuildCollection { - get { - return ResourceManager.GetString("MDF_UnableToBuildCollection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested collection ({0}) is not defined.. - /// - internal static string MDF_UndefinedCollection { - get { - return ResourceManager.GetString("MDF_UndefinedCollection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested collection ({0}) is not supported by this version of the provider.. - /// - internal static string MDF_UnsupportedVersion { - get { - return ResourceManager.GetString("MDF_UnsupportedVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The validation of the attestation token failed. Claim '{0}' is missing in the token. Verify the attestation policy - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If the policy is correct, contact Customer Support Services.. - /// - internal static string MissingClaimInAttestationToken { - get { - return ResourceManager.GetString("MissingClaimInAttestationToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level.. - /// - internal static string net_auth_message_not_encrypted { - get { - return ResourceManager.GetString("net_auth_message_not_encrypted", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Insufficient buffer space. Required: {0} Actual: {1}.. - /// - internal static string net_context_buffer_too_small { - get { - return ResourceManager.GetString("net_context_buffer_too_small", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to GSSAPI operation failed with status: {0} (Minor status: {1}).. - /// - internal static string net_gssapi_operation_failed { - get { - return ResourceManager.GetString("net_gssapi_operation_failed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to GSSAPI operation failed with error - {0} ({1}).. - /// - internal static string net_gssapi_operation_failed_detailed { - get { - return ResourceManager.GetString("net_gssapi_operation_failed_detailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified value is not valid in the '{0}' enumeration.. - /// - internal static string net_invalid_enum { - get { - return ResourceManager.GetString("net_invalid_enum", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} failed with error {1}.. - /// - internal static string net_log_operation_failed_with_error { - get { - return ResourceManager.GetString("net_log_operation_failed_with_error", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This method is not implemented by this class.. - /// - internal static string net_MethodNotImplementedException { - get { - return ResourceManager.GetString("net_MethodNotImplementedException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No support for channel binding on operating systems other than Windows.. - /// - internal static string net_nego_channel_binding_not_supported { - get { - return ResourceManager.GetString("net_nego_channel_binding_not_supported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Target name should be non empty if default credentials are passed.. - /// - internal static string net_nego_not_supported_empty_target_with_defaultcreds { - get { - return ResourceManager.GetString("net_nego_not_supported_empty_target_with_defaultcreds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Requested protection level is not supported with the GSSAPI implementation currently installed.. - /// - internal static string net_nego_protection_level_not_supported { - get { - return ResourceManager.GetString("net_nego_protection_level_not_supported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server implementation is not supported. - /// - internal static string net_nego_server_not_supported { - get { - return ResourceManager.GetString("net_nego_server_not_supported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to NTLM authentication is not possible with default credentials on this platform.. - /// - internal static string net_ntlm_not_possible_default_cred { - get { - return ResourceManager.GetString("net_ntlm_not_possible_default_cred", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested security package is not supported.. - /// - internal static string net_securitypackagesupport { - get { - return ResourceManager.GetString("net_securitypackagesupport", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DateType column for field '{0}' in schema table is null. DataType must be non-null.. - /// - internal static string NullSchemaTableDataTypeNotSupported { - get { - return ResourceManager.GetString("NullSchemaTableDataTypeNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Security Warning: The negotiated {0} is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later.. - /// - internal static string SEC_ProtocolWarning { - get { - return ResourceManager.GetString("SEC_ProtocolWarning", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to I/O Error detected in read/write operation. - /// - internal static string SNI_ERROR_1 { - get { - return ResourceManager.GetString("SNI_ERROR_1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout error. - /// - internal static string SNI_ERROR_11 { - get { - return ResourceManager.GetString("SNI_ERROR_11", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No server name supplied. - /// - internal static string SNI_ERROR_12 { - get { - return ResourceManager.GetString("SNI_ERROR_12", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TerminateListener() has been called. - /// - internal static string SNI_ERROR_13 { - get { - return ResourceManager.GetString("SNI_ERROR_13", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Win9x not supported. - /// - internal static string SNI_ERROR_14 { - get { - return ResourceManager.GetString("SNI_ERROR_14", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Function not supported. - /// - internal static string SNI_ERROR_15 { - get { - return ResourceManager.GetString("SNI_ERROR_15", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shared-Memory heap error. - /// - internal static string SNI_ERROR_16 { - get { - return ResourceManager.GetString("SNI_ERROR_16", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find an ip/ipv6 type address to connect. - /// - internal static string SNI_ERROR_17 { - get { - return ResourceManager.GetString("SNI_ERROR_17", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection has been closed by peer. - /// - internal static string SNI_ERROR_18 { - get { - return ResourceManager.GetString("SNI_ERROR_18", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Physical connection is not usable. - /// - internal static string SNI_ERROR_19 { - get { - return ResourceManager.GetString("SNI_ERROR_19", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection was terminated. - /// - internal static string SNI_ERROR_2 { - get { - return ResourceManager.GetString("SNI_ERROR_2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection has been closed. - /// - internal static string SNI_ERROR_20 { - get { - return ResourceManager.GetString("SNI_ERROR_20", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption is enforced but there is no valid certificate. - /// - internal static string SNI_ERROR_21 { - get { - return ResourceManager.GetString("SNI_ERROR_21", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Couldn't load library. - /// - internal static string SNI_ERROR_22 { - get { - return ResourceManager.GetString("SNI_ERROR_22", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot open a new thread in server process. - /// - internal static string SNI_ERROR_23 { - get { - return ResourceManager.GetString("SNI_ERROR_23", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot post event to completion port. - /// - internal static string SNI_ERROR_24 { - get { - return ResourceManager.GetString("SNI_ERROR_24", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection string is not valid. - /// - internal static string SNI_ERROR_25 { - get { - return ResourceManager.GetString("SNI_ERROR_25", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error Locating Server/Instance Specified. - /// - internal static string SNI_ERROR_26 { - get { - return ResourceManager.GetString("SNI_ERROR_26", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error getting enabled protocols list from registry. - /// - internal static string SNI_ERROR_27 { - get { - return ResourceManager.GetString("SNI_ERROR_27", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server doesn't support requested protocol. - /// - internal static string SNI_ERROR_28 { - get { - return ResourceManager.GetString("SNI_ERROR_28", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shared Memory is not supported for clustered server connectivity. - /// - internal static string SNI_ERROR_29 { - get { - return ResourceManager.GetString("SNI_ERROR_29", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Asynchronous operations not supported. - /// - internal static string SNI_ERROR_3 { - get { - return ResourceManager.GetString("SNI_ERROR_3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt bind to shared memory segment. - /// - internal static string SNI_ERROR_30 { - get { - return ResourceManager.GetString("SNI_ERROR_30", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption(ssl/tls) handshake failed. - /// - internal static string SNI_ERROR_31 { - get { - return ResourceManager.GetString("SNI_ERROR_31", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Packet size too large for SSL Encrypt/Decrypt operations. - /// - internal static string SNI_ERROR_32 { - get { - return ResourceManager.GetString("SNI_ERROR_32", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSRP error. - /// - internal static string SNI_ERROR_33 { - get { - return ResourceManager.GetString("SNI_ERROR_33", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not connect to the Shared Memory pipe. - /// - internal static string SNI_ERROR_34 { - get { - return ResourceManager.GetString("SNI_ERROR_34", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An internal exception was caught. - /// - internal static string SNI_ERROR_35 { - get { - return ResourceManager.GetString("SNI_ERROR_35", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Shared Memory dll used to connect to SQL Server 2000 was not found. - /// - internal static string SNI_ERROR_36 { - get { - return ResourceManager.GetString("SNI_ERROR_36", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The SQL Server 2000 Shared Memory client dll appears to be invalid/corrupted. - /// - internal static string SNI_ERROR_37 { - get { - return ResourceManager.GetString("SNI_ERROR_37", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot open a Shared Memory connection to SQL Server 2000. - /// - internal static string SNI_ERROR_38 { - get { - return ResourceManager.GetString("SNI_ERROR_38", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shared memory connectivity to SQL Server 2000 is either disabled or not available on this machine. - /// - internal static string SNI_ERROR_39 { - get { - return ResourceManager.GetString("SNI_ERROR_39", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not open a connection to SQL Server. - /// - internal static string SNI_ERROR_40 { - get { - return ResourceManager.GetString("SNI_ERROR_40", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot open a Shared Memory connection to a remote SQL server. - /// - internal static string SNI_ERROR_41 { - get { - return ResourceManager.GetString("SNI_ERROR_41", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not establish dedicated administrator connection (DAC) on default port. Make sure that DAC is enabled. - /// - internal static string SNI_ERROR_42 { - get { - return ResourceManager.GetString("SNI_ERROR_42", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number. - /// - internal static string SNI_ERROR_43 { - get { - return ResourceManager.GetString("SNI_ERROR_43", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not compose Service Principal Name (SPN) for Windows Integrated Authentication. Possible causes are server(s) incorrectly specified to connection API calls, Domain Name System (DNS) lookup failure or memory shortage. - /// - internal static string SNI_ERROR_44 { - get { - return ResourceManager.GetString("SNI_ERROR_44", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported.. - /// - internal static string SNI_ERROR_47 { - get { - return ResourceManager.GetString("SNI_ERROR_47", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported.. - /// - internal static string SNI_ERROR_48 { - get { - return ResourceManager.GetString("SNI_ERROR_48", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol.. - /// - internal static string SNI_ERROR_49 { - get { - return ResourceManager.GetString("SNI_ERROR_49", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid parameter(s) found. - /// - internal static string SNI_ERROR_5 { - get { - return ResourceManager.GetString("SNI_ERROR_5", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Local Database Runtime error occurred. . - /// - internal static string SNI_ERROR_50 { - get { - return ResourceManager.GetString("SNI_ERROR_50", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An instance name was not specified while connecting to a Local Database Runtime. Specify an instance name in the format (localdb)\instance_name.. - /// - internal static string SNI_ERROR_51 { - get { - return ResourceManager.GetString("SNI_ERROR_51", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.. - /// - internal static string SNI_ERROR_52 { - get { - return ResourceManager.GetString("SNI_ERROR_52", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid Local Database Runtime registry configuration found. Verify that SQL Server Express is properly installed.. - /// - internal static string SNI_ERROR_53 { - get { - return ResourceManager.GetString("SNI_ERROR_53", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to locate the registry entry for SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.. - /// - internal static string SNI_ERROR_54 { - get { - return ResourceManager.GetString("SNI_ERROR_54", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Registry value contains an invalid SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.. - /// - internal static string SNI_ERROR_55 { - get { - return ResourceManager.GetString("SNI_ERROR_55", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.. - /// - internal static string SNI_ERROR_56 { - get { - return ResourceManager.GetString("SNI_ERROR_56", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.. - /// - internal static string SNI_ERROR_57 { - get { - return ResourceManager.GetString("SNI_ERROR_57", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unsupported protocol specified. - /// - internal static string SNI_ERROR_6 { - get { - return ResourceManager.GetString("SNI_ERROR_6", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid connection found when setting up new session protocol. - /// - internal static string SNI_ERROR_7 { - get { - return ResourceManager.GetString("SNI_ERROR_7", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Protocol not supported. - /// - internal static string SNI_ERROR_8 { - get { - return ResourceManager.GetString("SNI_ERROR_8", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Associating port with I/O completion mechanism failed. - /// - internal static string SNI_ERROR_9 { - get { - return ResourceManager.GetString("SNI_ERROR_9", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Incorrect physicalConnection type.. - /// - internal static string SNI_IncorrectPhysicalConnectionType { - get { - return ResourceManager.GetString("SNI_IncorrectPhysicalConnectionType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to HTTP Provider. - /// - internal static string SNI_PN0 { - get { - return ResourceManager.GetString("SNI_PN0", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Named Pipes Provider. - /// - internal static string SNI_PN1 { - get { - return ResourceManager.GetString("SNI_PN1", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Session Provider. - /// - internal static string SNI_PN2 { - get { - return ResourceManager.GetString("SNI_PN2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Sign Provider. - /// - internal static string SNI_PN3 { - get { - return ResourceManager.GetString("SNI_PN3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Shared Memory Provider. - /// - internal static string SNI_PN4 { - get { - return ResourceManager.GetString("SNI_PN4", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SMux Provider. - /// - internal static string SNI_PN5 { - get { - return ResourceManager.GetString("SNI_PN5", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSL Provider. - /// - internal static string SNI_PN6 { - get { - return ResourceManager.GetString("SNI_PN6", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TCP Provider. - /// - internal static string SNI_PN7 { - get { - return ResourceManager.GetString("SNI_PN7", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to . - /// - internal static string SNI_PN8 { - get { - return ResourceManager.GetString("SNI_PN8", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL Network Interfaces. - /// - internal static string SNI_PN9 { - get { - return ResourceManager.GetString("SNI_PN9", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection open and login was successful, but then an error occurred while enlisting the connection into the current distributed transaction.. - /// - internal static string Snix_AutoEnlist { - get { - return ResourceManager.GetString("Snix_AutoEnlist", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A transport-level error has occurred during connection clean-up.. - /// - internal static string Snix_Close { - get { - return ResourceManager.GetString("Snix_Close", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.. - /// - internal static string Snix_Connect { - get { - return ResourceManager.GetString("Snix_Connect", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection open and login was successful, but then an error occurred while enabling MARS for this connection.. - /// - internal static string Snix_EnableMars { - get { - return ResourceManager.GetString("Snix_EnableMars", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A transport-level error has occurred when sending the request to the server.. - /// - internal static string Snix_Execute { - get { - return ResourceManager.GetString("Snix_Execute", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to establish a MARS session in preparation to send the request to the server.. - /// - internal static string Snix_GetMarsSession { - get { - return ResourceManager.GetString("Snix_GetMarsSession", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred during the login process.. - /// - internal static string Snix_Login { - get { - return ResourceManager.GetString("Snix_Login", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred when obtaining the security/SSPI context information for integrated security login.. - /// - internal static string Snix_LoginSspi { - get { - return ResourceManager.GetString("Snix_LoginSspi", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred during the pre-login handshake.. - /// - internal static string Snix_PreLogin { - get { - return ResourceManager.GetString("Snix_PreLogin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server.. - /// - internal static string Snix_PreLoginBeforeSuccessfulWrite { - get { - return ResourceManager.GetString("Snix_PreLoginBeforeSuccessfulWrite", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A transport-level error has occurred during SSPI handshake.. - /// - internal static string Snix_ProcessSspi { - get { - return ResourceManager.GetString("Snix_ProcessSspi", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A transport-level error has occurred when receiving results from the server.. - /// - internal static string Snix_Read { - get { - return ResourceManager.GetString("Snix_Read", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A transport-level error has occurred while sending information to the server.. - /// - internal static string Snix_SendRows { - get { - return ResourceManager.GetString("Snix_SendRows", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication' with 'Integrated Security'.. - /// - internal static string SQL_AuthenticationAndIntegratedSecurity { - get { - return ResourceManager.GetString("SQL_AuthenticationAndIntegratedSecurity", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Batching updates is not supported on the context connection.. - /// - internal static string SQL_BatchedUpdatesNotAvailableOnContextConnection { - get { - return ResourceManager.GetString("SQL_BatchedUpdatesNotAvailableOnContextConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlBulkCopy.WriteToServer failed because the SqlBulkCopy.DestinationTableName is an invalid multipart name. - /// - internal static string SQL_BulkCopyDestinationTableName { - get { - return ResourceManager.GetString("SQL_BulkCopyDestinationTableName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The given value{0} of type {1} from the data source cannot be converted to type {2} for Column {3} [{4}] Row {5}.. - /// - internal static string SQL_BulkLoadCannotConvertValue { - get { - return ResourceManager.GetString("SQL_BulkLoadCannotConvertValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The given value{0} of type {1} from the data source cannot be converted to type {2} for Column {3} [{4}].. - /// - internal static string SQL_BulkLoadCannotConvertValueWithoutRowNo { - get { - return ResourceManager.GetString("SQL_BulkLoadCannotConvertValueWithoutRowNo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Must not specify SqlBulkCopyOption.UseInternalTransaction and pass an external Transaction at the same time.. - /// - internal static string SQL_BulkLoadConflictingTransactionOption { - get { - return ResourceManager.GetString("SQL_BulkLoadConflictingTransactionOption", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unexpected existing transaction.. - /// - internal static string SQL_BulkLoadExistingTransaction { - get { - return ResourceManager.GetString("SQL_BulkLoadExistingTransaction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot access destination table '{0}'.. - /// - internal static string SQL_BulkLoadInvalidDestinationTable { - get { - return ResourceManager.GetString("SQL_BulkLoadInvalidDestinationTable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Function must not be called during event.. - /// - internal static string SQL_BulkLoadInvalidOperationInsideEvent { - get { - return ResourceManager.GetString("SQL_BulkLoadInvalidOperationInsideEvent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The given column order hint is not valid.. - /// - internal static string SQL_BulkLoadInvalidOrderHint { - get { - return ResourceManager.GetString("SQL_BulkLoadInvalidOrderHint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout Value '{0}' is less than 0.. - /// - internal static string SQL_BulkLoadInvalidTimeout { - get { - return ResourceManager.GetString("SQL_BulkLoadInvalidTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Value cannot be converted to SqlVariant.. - /// - internal static string SQL_BulkLoadInvalidVariantValue { - get { - return ResourceManager.GetString("SQL_BulkLoadInvalidVariantValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The locale id '{0}' of the source column '{1}' and the locale id '{2}' of the destination column '{3}' do not match.. - /// - internal static string Sql_BulkLoadLcidMismatch { - get { - return ResourceManager.GetString("Sql_BulkLoadLcidMismatch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The mapped collection is in use and cannot be accessed at this time;. - /// - internal static string SQL_BulkLoadMappingInaccessible { - get { - return ResourceManager.GetString("SQL_BulkLoadMappingInaccessible", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Mappings must be either all name or all ordinal based.. - /// - internal static string SQL_BulkLoadMappingsNamesOrOrdinalsOnly { - get { - return ResourceManager.GetString("SQL_BulkLoadMappingsNamesOrOrdinalsOnly", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The DestinationTableName property must be set before calling this method.. - /// - internal static string SQL_BulkLoadMissingDestinationTable { - get { - return ResourceManager.GetString("SQL_BulkLoadMissingDestinationTable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to obtain column collation information for the destination table. If the table is not in the current database the name must be qualified using the database name (e.g. [mydb]..[mytable](e.g. [mydb]..[mytable]); this also applies to temporary-tables (e.g. #mytable would be specified as tempdb..#mytable).. - /// - internal static string SQL_BulkLoadNoCollation { - get { - return ResourceManager.GetString("SQL_BulkLoadNoCollation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The given ColumnMapping does not match up with any column in the source or destination.. - /// - internal static string SQL_BulkLoadNonMatchingColumnMapping { - get { - return ResourceManager.GetString("SQL_BulkLoadNonMatchingColumnMapping", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The given ColumnName '{0}' does not match up with any column in data source.. - /// - internal static string SQL_BulkLoadNonMatchingColumnName { - get { - return ResourceManager.GetString("SQL_BulkLoadNonMatchingColumnName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column '{0}' does not allow DBNull.Value.. - /// - internal static string SQL_BulkLoadNotAllowDBNull { - get { - return ResourceManager.GetString("SQL_BulkLoadNotAllowDBNull", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The column '{0}' was specified more than once.. - /// - internal static string SQL_BulkLoadOrderHintDuplicateColumn { - get { - return ResourceManager.GetString("SQL_BulkLoadOrderHintDuplicateColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The sorted column '{0}' is not valid in the destination table.. - /// - internal static string SQL_BulkLoadOrderHintInvalidColumn { - get { - return ResourceManager.GetString("SQL_BulkLoadOrderHintInvalidColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attempt to invoke bulk copy on an object that has a pending operation.. - /// - internal static string SQL_BulkLoadPendingOperation { - get { - return ResourceManager.GetString("SQL_BulkLoadPendingOperation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to String or binary data would be truncated in table '{0}', column '{1}'. Truncated value: '{2}'.. - /// - internal static string SQL_BulkLoadStringTooLong { - get { - return ResourceManager.GetString("SQL_BulkLoadStringTooLong", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A column order hint cannot have an unspecified sort order.. - /// - internal static string SQL_BulkLoadUnspecifiedSortOrder { - get { - return ResourceManager.GetString("SQL_BulkLoadUnspecifiedSortOrder", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to instantiate a SqlAuthenticationInitializer with type '{0}'.. - /// - internal static string SQL_CannotCreateAuthInitializer { - get { - return ResourceManager.GetString("SQL_CannotCreateAuthInitializer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to instantiate an authentication provider with type '{1}' for '{0}'.. - /// - internal static string SQL_CannotCreateAuthProvider { - get { - return ResourceManager.GetString("SQL_CannotCreateAuthProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot create normalizer for '{0}'.. - /// - internal static string SQL_CannotCreateNormalizer { - get { - return ResourceManager.GetString("SQL_CannotCreateNormalizer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot find an authentication provider for '{0}'.. - /// - internal static string SQL_CannotFindAuthProvider { - get { - return ResourceManager.GetString("SQL_CannotFindAuthProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to read the config section for authentication providers.. - /// - internal static string SQL_CannotGetAuthProviderConfig { - get { - return ResourceManager.GetString("SQL_CannotGetAuthProviderConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to get the address of the distributed transaction coordinator for the server, from the server. Is DTC enabled on the server?. - /// - internal static string SQL_CannotGetDTCAddress { - get { - return ResourceManager.GetString("SQL_CannotGetDTCAddress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provider '{0}' threw an exception while initializing.. - /// - internal static string SQL_CannotInitializeAuthProvider { - get { - return ResourceManager.GetString("SQL_CannotInitializeAuthProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} cannot be changed while async operation is in progress.. - /// - internal static string SQL_CannotModifyPropertyAsyncOperationInProgress { - get { - return ResourceManager.GetString("SQL_CannotModifyPropertyAsyncOperationInProgress", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The '{0}' argument must not be null or empty.. - /// - internal static string SQL_ChangePasswordArgumentMissing { - get { - return ResourceManager.GetString("SQL_ChangePasswordArgumentMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ChangePassword can only be used with SQL authentication, not with integrated security.. - /// - internal static string SQL_ChangePasswordConflictsWithSSPI { - get { - return ResourceManager.GetString("SQL_ChangePasswordConflictsWithSSPI", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ChangePassword requires SQL Server 9.0 or later.. - /// - internal static string SQL_ChangePasswordRequiresYukon { - get { - return ResourceManager.GetString("SQL_ChangePasswordRequiresYukon", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The keyword '{0}' must not be specified in the connectionString argument to ChangePassword.. - /// - internal static string SQL_ChangePasswordUseOfUnallowedKey { - get { - return ResourceManager.GetString("SQL_ChangePasswordUseOfUnallowedKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The requested operation cannot be completed because the connection has been broken.. - /// - internal static string SQL_ConnectionDoomed { - get { - return ResourceManager.GetString("SQL_ConnectionDoomed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection cannot be used because there is an ongoing operation that must be finished.. - /// - internal static string SQL_ConnectionLockedForBcpEvent { - get { - return ResourceManager.GetString("SQL_ConnectionLockedForBcpEvent", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Either Credential or both 'User ID' and 'Password' (or 'UID' and 'PWD') connection string keywords must be specified, if 'Authentication={0}'.. - /// - internal static string SQL_CredentialsNotProvided { - get { - return ResourceManager.GetString("SQL_CredentialsNotProvided", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Collation specified by SQL Server is not supported.. - /// - internal static string SQL_CultureIdError { - get { - return ResourceManager.GetString("SQL_CultureIdError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Type {0} is not supported on this platform.. - /// - internal static string SQL_DbTypeNotSupportedOnThisPlatform { - get { - return ResourceManager.GetString("SQL_DbTypeNotSupportedOnThisPlatform", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Device Code Flow' with 'User ID', 'UID', 'Password' or 'PWD' connection string keywords.. - /// - internal static string SQL_DeviceFlowWithUsernamePassword { - get { - return ResourceManager.GetString("SQL_DeviceFlowWithUsernamePassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; . - /// - internal static string SQL_Duration_Login_Begin { - get { - return ResourceManager.GetString("SQL_Duration_Login_Begin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; . - /// - internal static string SQL_Duration_Login_ProcessConnectionAuth { - get { - return ResourceManager.GetString("SQL_Duration_Login_ProcessConnectionAuth", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; . - /// - internal static string SQL_Duration_PostLogin { - get { - return ResourceManager.GetString("SQL_Duration_PostLogin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0};. - /// - internal static string SQL_Duration_PreLogin_Begin { - get { - return ResourceManager.GetString("SQL_Duration_PreLogin_Begin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; . - /// - internal static string SQL_Duration_PreLoginHandshake { - get { - return ResourceManager.GetString("SQL_Duration_PreLoginHandshake", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The instance of SQL Server you attempted to connect to requires encryption but this machine does not support it.. - /// - internal static string SQL_EncryptionNotSupportedByClient { - get { - return ResourceManager.GetString("SQL_EncryptionNotSupportedByClient", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The instance of SQL Server you attempted to connect to does not support encryption.. - /// - internal static string SQL_EncryptionNotSupportedByServer { - get { - return ResourceManager.GetString("SQL_EncryptionNotSupportedByServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Number of fields in record '{0}' does not match the number in the original record.. - /// - internal static string SQL_EnumeratedRecordFieldCountChanged { - get { - return ResourceManager.GetString("SQL_EnumeratedRecordFieldCountChanged", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Metadata for field '{0}' of record '{1}' did not match the original record's metadata.. - /// - internal static string SQL_EnumeratedRecordMetaDataChanged { - get { - return ResourceManager.GetString("SQL_EnumeratedRecordMetaDataChanged", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ClientConnectionId:{0}. - /// - internal static string SQL_ExClientConnectionId { - get { - return ResourceManager.GetString("SQL_ExClientConnectionId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error Number:{0},State:{1},Class:{2}. - /// - internal static string SQL_ExErrorNumberStateClass { - get { - return ResourceManager.GetString("SQL_ExErrorNumberStateClass", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ClientConnectionId before routing:{0}. - /// - internal static string SQL_ExOriginalClientConnectionId { - get { - return ResourceManager.GetString("SQL_ExOriginalClientConnectionId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Routing Destination:{0}. - /// - internal static string SQL_ExRoutingDestination { - get { - return ResourceManager.GetString("SQL_ExRoutingDestination", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Globalization Invariant Mode is not supported.. - /// - internal static string SQL_GlobalizationInvariantModeNotSupported { - get { - return ResourceManager.GetString("SQL_GlobalizationInvariantModeNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Instance failure.. - /// - internal static string SQL_InstanceFailure { - get { - return ResourceManager.GetString("SQL_InstanceFailure", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Integrated' with 'Password' or 'PWD' connection string keywords.. - /// - internal static string SQL_IntegratedWithPassword { - get { - return ResourceManager.GetString("SQL_IntegratedWithPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Interactive' with 'Password' or 'PWD' connection string keywords.. - /// - internal static string SQL_InteractiveWithPassword { - get { - return ResourceManager.GetString("SQL_InteractiveWithPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. - /// - internal static string Sql_InternalError { - get { - return ResourceManager.GetString("Sql_InternalError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Buffer offset '{1}' plus the bytes available '{0}' is greater than the length of the passed in buffer.. - /// - internal static string SQL_InvalidBufferSizeOrIndex { - get { - return ResourceManager.GetString("SQL_InvalidBufferSizeOrIndex", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data length '{0}' is less than 0.. - /// - internal static string SQL_InvalidDataLength { - get { - return ResourceManager.GetString("SQL_InvalidDataLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid internal packet size:. - /// - internal static string SQL_InvalidInternalPacketSize { - get { - return ResourceManager.GetString("SQL_InvalidInternalPacketSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid 'Packet Size'. The value must be an integer >= 512 and <= 32768.. - /// - internal static string SQL_InvalidPacketSizeValue { - get { - return ResourceManager.GetString("SQL_InvalidPacketSizeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The length of the parameter '{0}' exceeds the limit of 128 characters.. - /// - internal static string SQL_InvalidParameterNameLength { - get { - return ResourceManager.GetString("SQL_InvalidParameterNameLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid 3 part name format for TypeName.. - /// - internal static string SQL_InvalidParameterTypeNameFormat { - get { - return ResourceManager.GetString("SQL_InvalidParameterTypeNameFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server {0}, database {1} is not configured for database mirroring.. - /// - internal static string SQL_InvalidPartnerConfiguration { - get { - return ResourceManager.GetString("SQL_InvalidPartnerConfiguration", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to read when no data is present.. - /// - internal static string SQL_InvalidRead { - get { - return ResourceManager.GetString("SQL_InvalidRead", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unsupported SQL Server version. The .NET Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later.. - /// - internal static string SQL_InvalidSQLServerVersionUnknown { - get { - return ResourceManager.GetString("SQL_InvalidSQLServerVersionUnknown", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid SSPI packet size.. - /// - internal static string SQL_InvalidSSPIPacketSize { - get { - return ResourceManager.GetString("SQL_InvalidSSPIPacketSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid Packet Size.. - /// - internal static string SQL_InvalidTDSPacketSize { - get { - return ResourceManager.GetString("SQL_InvalidTDSPacketSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The SQL Server instance returned an invalid or unsupported protocol version during login negotiation.. - /// - internal static string SQL_InvalidTDSVersion { - get { - return ResourceManager.GetString("SQL_InvalidTDSVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid 3 part name format for UdtTypeName.. - /// - internal static string SQL_InvalidUdt3PartNameFormat { - get { - return ResourceManager.GetString("SQL_InvalidUdt3PartNameFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.. - /// - internal static string SQL_KerberosTicketMissingError { - get { - return ResourceManager.GetString("SQL_KerberosTicketMissingError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection does not support MultipleActiveResultSets.. - /// - internal static string SQL_MarsUnsupportedOnConnection { - get { - return ResourceManager.GetString("SQL_MarsUnsupportedOnConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDbType.SmallMoney overflow. Value '{0}' is out of range. Must be between -214,748.3648 and 214,748.3647.. - /// - internal static string SQL_MoneyOverflow { - get { - return ResourceManager.GetString("SQL_MoneyOverflow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to authenticate the user {0} in Active Directory (Authentication={1}).. - /// - internal static string SQL_MSALFailure { - get { - return ResourceManager.GetString("SQL_MSALFailure", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error code 0x{0}. - /// - internal static string SQL_MSALInnerException { - get { - return ResourceManager.GetString("SQL_MSALInnerException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The keyword 'Network Library' is not supported on this platform, prefix the 'Data Source' with the protocol desired instead ('tcp:' for a TCP connection, or 'np:' for a Named Pipe connection).. - /// - internal static string SQL_NetworkLibraryNotSupported { - get { - return ResourceManager.GetString("SQL_NetworkLibraryNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to GetBytes on column '{0}'. The GetBytes function can only be used on columns of type Text, NText, or Image.. - /// - internal static string SQL_NonBlobColumn { - get { - return ResourceManager.GetString("SQL_NonBlobColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to GetChars on column '{0}'. The GetChars function can only be used on columns of type Text, NText, Xml, VarChar or NVarChar.. - /// - internal static string SQL_NonCharColumn { - get { - return ResourceManager.GetString("SQL_NonCharColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication={0}' with 'Password' or 'PWD' connection string keywords.. - /// - internal static string SQL_NonInteractiveWithPassword { - get { - return ResourceManager.GetString("SQL_NonInteractiveWithPassword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SSE Instance re-direction is not supported for non-local user instances.. - /// - internal static string SQL_NonLocalSSEInstance { - get { - return ResourceManager.GetString("SQL_NonLocalSSEInstance", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid command sent to ExecuteXmlReader. The command must return an Xml result.. - /// - internal static string SQL_NonXmlResult { - get { - return ResourceManager.GetString("SQL_NonXmlResult", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} enumeration value, {1}, is not supported by the .NET Framework SqlClient Data Provider.. - /// - internal static string SQL_NotSupportedEnumerationValue { - get { - return ResourceManager.GetString("SQL_NotSupportedEnumerationValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid transaction or invalid name for a point at which to save within the transaction.. - /// - internal static string SQL_NullEmptyTransactionName { - get { - return ResourceManager.GetString("SQL_NullEmptyTransactionName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Open result count exceeded.. - /// - internal static string SQL_OpenResultCountExceeded { - get { - return ResourceManager.GetString("SQL_OpenResultCountExceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Operation cancelled by user.. - /// - internal static string SQL_OperationCancelled { - get { - return ResourceManager.GetString("SQL_OperationCancelled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Parameter '{0}' cannot be null or empty.. - /// - internal static string SQL_ParameterCannotBeEmpty { - get { - return ResourceManager.GetString("SQL_ParameterCannotBeEmpty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Parameter '{0}' cannot have Direction Output or InputOutput when EnableOptimizedParameterBinding is enabled on the parent command.. - /// - internal static string SQL_ParameterDirectionInvalidForOptimizedBinding { - get { - return ResourceManager.GetString("SQL_ParameterDirectionInvalidForOptimizedBinding", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Parameter '{0}' exceeds the size limit for the sql_variant datatype.. - /// - internal static string SQL_ParameterInvalidVariant { - get { - return ResourceManager.GetString("SQL_ParameterInvalidVariant", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The {0} type parameter '{1}' must have a valid type name.. - /// - internal static string SQL_ParameterTypeNameRequired { - get { - return ResourceManager.GetString("SQL_ParameterTypeNameRequired", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error.. - /// - internal static string SQL_ParsingError { - get { - return ResourceManager.GetString("SQL_ParsingError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Authentication Library Type: {1}.. - /// - internal static string SQL_ParsingErrorAuthLibraryType { - get { - return ResourceManager.GetString("SQL_ParsingErrorAuthLibraryType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Feature Id: {1}.. - /// - internal static string SQL_ParsingErrorFeatureId { - get { - return ResourceManager.GetString("SQL_ParsingErrorFeatureId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Length: {1}. - /// - internal static string SQL_ParsingErrorLength { - get { - return ResourceManager.GetString("SQL_ParsingErrorLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Offset: {1}. - /// - internal static string SQL_ParsingErrorOffset { - get { - return ResourceManager.GetString("SQL_ParsingErrorOffset", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Status: {1}. - /// - internal static string SQL_ParsingErrorStatus { - get { - return ResourceManager.GetString("SQL_ParsingErrorStatus", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Token : {1}. - /// - internal static string SQL_ParsingErrorToken { - get { - return ResourceManager.GetString("SQL_ParsingErrorToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Value: {1}.. - /// - internal static string SQL_ParsingErrorValue { - get { - return ResourceManager.GetString("SQL_ParsingErrorValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal connection fatal error. Error state: {0}.. - /// - internal static string SQL_ParsingErrorWithState { - get { - return ResourceManager.GetString("SQL_ParsingErrorWithState", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The command execution cannot proceed due to a pending asynchronous operation already in progress.. - /// - internal static string SQL_PendingBeginXXXExists { - get { - return ResourceManager.GetString("SQL_PendingBeginXXXExists", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Precision value '{0}' is either less than 0 or greater than the maximum allowed precision of 38.. - /// - internal static string SQL_PrecisionValueOutOfRange { - get { - return ResourceManager.GetString("SQL_PrecisionValueOutOfRange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 38.. - /// - internal static string SQL_ScaleValueOutOfRange { - get { - return ResourceManager.GetString("SQL_ScaleValueOutOfRange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the Credential property if 'Authentication=Active Directory Device Code Flow' has been specified in the connection string.. - /// - internal static string SQL_SettingCredentialWithDeviceFlow { - get { - return ResourceManager.GetString("SQL_SettingCredentialWithDeviceFlow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the Credential property if 'Authentication=Active Directory Integrated' has been specified in the connection string.. - /// - internal static string SQL_SettingCredentialWithIntegrated { - get { - return ResourceManager.GetString("SQL_SettingCredentialWithIntegrated", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the Credential property if 'Authentication=Active Directory Interactive' has been specified in the connection string.. - /// - internal static string SQL_SettingCredentialWithInteractive { - get { - return ResourceManager.GetString("SQL_SettingCredentialWithInteractive", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set the Credential property if 'Authentication={0}' has been specified in the connection string.. - /// - internal static string SQL_SettingCredentialWithNonInteractive { - get { - return ResourceManager.GetString("SQL_SettingCredentialWithNonInteractive", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Device Code Flow', if the Credential property has been set.. - /// - internal static string SQL_SettingDeviceFlowWithCredential { - get { - return ResourceManager.GetString("SQL_SettingDeviceFlowWithCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Integrated', if the Credential property has been set.. - /// - internal static string SQL_SettingIntegratedWithCredential { - get { - return ResourceManager.GetString("SQL_SettingIntegratedWithCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Interactive', if the Credential property has been set.. - /// - internal static string SQL_SettingInteractiveWithCredential { - get { - return ResourceManager.GetString("SQL_SettingInteractiveWithCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot use 'Authentication={0}', if the Credential property has been set.. - /// - internal static string SQL_SettingNonInteractiveWithCredential { - get { - return ResourceManager.GetString("SQL_SettingNonInteractiveWithCredential", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A severe error occurred on the current command. The results, if any, should be discarded.. - /// - internal static string SQL_SevereError { - get { - return ResourceManager.GetString("SQL_SevereError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDbType.SmallDateTime overflow. Value '{0}' is out of range. Must be between 1/1/1900 12:00:00 AM and 6/6/2079 11:59:59 PM.. - /// - internal static string SQL_SmallDateTimeOverflow { - get { - return ResourceManager.GetString("SQL_SmallDateTimeOverflow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Memory allocation for internal connection failed.. - /// - internal static string SQL_SNIPacketAllocationFailure { - get { - return ResourceManager.GetString("SQL_SNIPacketAllocationFailure", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Socket did not throw expected '{0}' with error code '{1}'.. - /// - internal static string SQL_SocketDidNotThrow { - get { - return ResourceManager.GetString("SQL_SocketDidNotThrow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name. - /// - internal static string SQL_SqlCommandCommandText { - get { - return ResourceManager.GetString("SQL_SqlCommandCommandText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to generate SSPI context.. - /// - internal static string SQL_SSPIGenerateError { - get { - return ResourceManager.GetString("SQL_SSPIGenerateError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot initialize SSPI package.. - /// - internal static string SQL_SSPIInitializeError { - get { - return ResourceManager.GetString("SQL_SSPIInitializeError", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to GetStream on column '{0}'. The GetStream function can only be used on columns of type Binary, Image, Udt or VarBinary.. - /// - internal static string SQL_StreamNotSupportOnColumnType { - get { - return ResourceManager.GetString("SQL_StreamNotSupportOnColumnType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Stream does not support reading.. - /// - internal static string SQL_StreamReadNotSupported { - get { - return ResourceManager.GetString("SQL_StreamReadNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Stream does not support seeking.. - /// - internal static string SQL_StreamSeekNotSupported { - get { - return ResourceManager.GetString("SQL_StreamSeekNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The Stream does not support writing.. - /// - internal static string SQL_StreamWriteNotSupported { - get { - return ResourceManager.GetString("SQL_StreamWriteNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encrypt=Strict is not supported when targeting .NET Standard 2.0. Use .NET Standard 2.1, .NET Framework, or .NET.. - /// - internal static string SQL_TDS8_NotSupported_Netstandard2_0 { - get { - return ResourceManager.GetString("SQL_TDS8_NotSupported_Netstandard2.0", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Processing of results from SQL Server failed because of an invalid multipart name. - /// - internal static string SQL_TDSParserTableName { - get { - return ResourceManager.GetString("SQL_TDSParserTableName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to GetTextReader on column '{0}'. The GetTextReader function can only be used on columns of type Char, NChar, NText, NVarChar, Text or VarChar.. - /// - internal static string SQL_TextReaderNotSupportOnColumnType { - get { - return ResourceManager.GetString("SQL_TextReaderNotSupportOnColumnType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.. - /// - internal static string SQL_Timeout { - get { - return ResourceManager.GetString("SQL_Timeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Active Directory Device Code Flow authentication timed out. The user took too long to respond to the authentication request.. - /// - internal static string SQL_Timeout_Active_Directory_DeviceFlow_Authentication { - get { - return ResourceManager.GetString("SQL_Timeout_Active_Directory_DeviceFlow_Authentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Active Directory Interactive authentication timed out. The user took too long to respond to the authentication request.. - /// - internal static string SQL_Timeout_Active_Directory_Interactive_Authentication { - get { - return ResourceManager.GetString("SQL_Timeout_Active_Directory_Interactive_Authentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.. - /// - internal static string SQL_Timeout_Execution { - get { - return ResourceManager.GetString("SQL_Timeout_Execution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This failure occurred while attempting to connect to the {0} server.. - /// - internal static string SQL_Timeout_FailoverInfo { - get { - return ResourceManager.GetString("SQL_Timeout_FailoverInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed at the start of the login phase. This could be because of insufficient time provided for connection timeout.. - /// - internal static string SQL_Timeout_Login_Begin { - get { - return ResourceManager.GetString("SQL_Timeout_Login_Begin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to authenticate the login. This could be because the server failed to authenticate the user or the server was unable to respond back in time.. - /// - internal static string SQL_Timeout_Login_ProcessConnectionAuth { - get { - return ResourceManager.GetString("SQL_Timeout_Login_ProcessConnectionAuth", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections.. - /// - internal static string SQL_Timeout_PostLogin { - get { - return ResourceManager.GetString("SQL_Timeout_PostLogin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed at the start of the pre-login phase. This could be because of insufficient time provided for connection timeout.. - /// - internal static string SQL_Timeout_PreLogin_Begin { - get { - return ResourceManager.GetString("SQL_Timeout_PreLogin_Begin", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time.. - /// - internal static string SQL_Timeout_PreLogin_ConsumeHandshake { - get { - return ResourceManager.GetString("SQL_Timeout_PreLogin_ConsumeHandshake", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to create and initialize a socket to the server. This could be either because the server was unreachable or unable to respond back in time.. - /// - internal static string SQL_Timeout_PreLogin_InitializeConnection { - get { - return ResourceManager.GetString("SQL_Timeout_PreLogin_InitializeConnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while making a pre-login handshake request. This could be because the server was unable to respond back in time.. - /// - internal static string SQL_Timeout_PreLogin_SendHandshake { - get { - return ResourceManager.GetString("SQL_Timeout_PreLogin_SendHandshake", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; . - /// - internal static string SQL_Timeout_RoutingDestinationInfo { - get { - return ResourceManager.GetString("SQL_Timeout_RoutingDestinationInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDbType.Time overflow. Value '{0}' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999.. - /// - internal static string SQL_TimeOverflow { - get { - return ResourceManager.GetString("SQL_TimeOverflow", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 7.. - /// - internal static string SQL_TimeScaleValueOutOfRange { - get { - return ResourceManager.GetString("SQL_TimeScaleValueOutOfRange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlParameter.TypeName is an invalid multipart name. - /// - internal static string SQL_TypeName { - get { - return ResourceManager.GetString("SQL_TypeName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlParameter.UdtTypeName is an invalid multipart name. - /// - internal static string SQL_UDTTypeName { - get { - return ResourceManager.GetString("SQL_UDTTypeName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unrecognized System.Transactions.IsolationLevel enumeration value: {0}.. - /// - internal static string SQL_UnknownSysTxIsolationLevel { - get { - return ResourceManager.GetString("SQL_UnknownSysTxIsolationLevel", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The authentication '{0}' is not supported.. - /// - internal static string SQL_UnsupportedAuthentication { - get { - return ResourceManager.GetString("SQL_UnsupportedAuthentication", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The provider '{0}' does not support authentication '{1}'.. - /// - internal static string SQL_UnsupportedAuthenticationByProvider { - get { - return ResourceManager.GetString("SQL_UnsupportedAuthenticationByProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unsupported authentication specified in this context: {0}. - /// - internal static string SQL_UnsupportedAuthenticationSpecified { - get { - return ResourceManager.GetString("SQL_UnsupportedAuthenticationSpecified", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The server is attempting to use a feature that is not supported on this platform.. - /// - internal static string SQL_UnsupportedFeature { - get { - return ResourceManager.GetString("SQL_UnsupportedFeature", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The keyword '{0}' is not supported on this platform.. - /// - internal static string SQL_UnsupportedKeyword { - get { - return ResourceManager.GetString("SQL_UnsupportedKeyword", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL authentication method '{0}' is not supported.. - /// - internal static string SQL_UnsupportedSqlAuthenticationMethod { - get { - return ResourceManager.GetString("SQL_UnsupportedSqlAuthenticationMethod", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The currently loaded System.Transactions.dll does not support Global Transactions.. - /// - internal static string SQL_UnsupportedSysTxVersion { - get { - return ResourceManager.GetString("SQL_UnsupportedSysTxVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Received an unsupported token '{0}' while reading data from the server.. - /// - internal static string SQL_UnsupportedToken { - get { - return ResourceManager.GetString("SQL_UnsupportedToken", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to User Instance and Failover are not compatible options. Please choose only one of the two in the connection string.. - /// - internal static string SQL_UserInstanceFailoverNotCompatible { - get { - return ResourceManager.GetString("SQL_UserInstanceFailoverNotCompatible", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A user instance was requested in the connection string but the server specified does not support this option.. - /// - internal static string SQL_UserInstanceFailure { - get { - return ResourceManager.GetString("SQL_UserInstanceFailure", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Expecting argument of type {1}, but received type {0}.. - /// - internal static string SQL_WrongType { - get { - return ResourceManager.GetString("SQL_WrongType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to GetXmlReader on column '{0}'. The GetXmlReader function can only be used on columns of type Xml.. - /// - internal static string SQL_XmlReaderNotSupportOnColumnType { - get { - return ResourceManager.GetString("SQL_XmlReaderNotSupportOnColumnType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Exception occurred while trying to set the AppContext Switch '{0}'={1}.. - /// - internal static string SqlAppContextSwitchManager_InvalidValue { - get { - return ResourceManager.GetString("SqlAppContextSwitchManager_InvalidValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot convert object of type '{0}' to object of type '{1}'.. - /// - internal static string SqlConvert_ConvertFailed { - get { - return ResourceManager.GetString("SqlConvert_ConvertFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection is broken and recovery is not possible. The client driver attempted to recover the connection one or more times and all attempts failed. Increase the value of ConnectRetryCount to increase the number of recovery attempts.. - /// - internal static string SQLCR_AllAttemptsFailed { - get { - return ResourceManager.GetString("SQLCR_AllAttemptsFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The server did not preserve SSL encryption during a recovery attempt, connection recovery is not possible.. - /// - internal static string SQLCR_EncryptionChanged { - get { - return ResourceManager.GetString("SQLCR_EncryptionChanged", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid ConnectRetryCount value (should be 0-255).. - /// - internal static string SQLCR_InvalidConnectRetryCountValue { - get { - return ResourceManager.GetString("SQLCR_InvalidConnectRetryCountValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid ConnectRetryInterval value (should be 1-60).. - /// - internal static string SQLCR_InvalidConnectRetryIntervalValue { - get { - return ResourceManager.GetString("SQLCR_InvalidConnectRetryIntervalValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Next reconnection attempt will exceed query timeout. Reconnection was terminated.. - /// - internal static string SQLCR_NextAttemptWillExceedQueryTimeout { - get { - return ResourceManager.GetString("SQLCR_NextAttemptWillExceedQueryTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The server did not acknowledge a recovery attempt, connection recovery is not possible.. - /// - internal static string SQLCR_NoCRAckAtReconnection { - get { - return ResourceManager.GetString("SQLCR_NoCRAckAtReconnection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The server did not preserve the exact client TDS version requested during a recovery attempt, connection recovery is not possible.. - /// - internal static string SQLCR_TDSVestionNotPreserved { - get { - return ResourceManager.GetString("SQLCR_TDSVestionNotPreserved", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.. - /// - internal static string SQLCR_UnrecoverableClient { - get { - return ResourceManager.GetString("SQLCR_UnrecoverableClient", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The connection is broken and recovery is not possible. The connection is marked by the server as unrecoverable. No attempt was made to restore the connection.. - /// - internal static string SQLCR_UnrecoverableServer { - get { - return ResourceManager.GetString("SQLCR_UnrecoverableServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failure while attempting to promote transaction.. - /// - internal static string SqlDelegatedTransaction_PromotionFailed { - get { - return ResourceManager.GetString("SqlDelegatedTransaction_PromotionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications.. - /// - internal static string SqlDependency_DatabaseBrokerDisabled { - get { - return ResourceManager.GetString("SqlDependency_DatabaseBrokerDisabled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance.. - /// - internal static string SqlDependency_DefaultOptionsButNoStart { - get { - return ResourceManager.GetString("SqlDependency_DefaultOptionsButNoStart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDependency does not support calling Start() with different connection strings having the same server, user, and database in the same app domain.. - /// - internal static string SqlDependency_DuplicateStart { - get { - return ResourceManager.GetString("SqlDependency_DuplicateStart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDependency.OnChange does not support multiple event registrations for the same delegate.. - /// - internal static string SqlDependency_EventNoDuplicate { - get { - return ResourceManager.GetString("SqlDependency_EventNoDuplicate", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No SqlDependency exists for the key.. - /// - internal static string SqlDependency_IdMismatch { - get { - return ResourceManager.GetString("SqlDependency_IdMismatch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Timeout specified is invalid. Timeout cannot be < 0.. - /// - internal static string SqlDependency_InvalidTimeout { - get { - return ResourceManager.GetString("SqlDependency_InvalidTimeout", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDependency.Start has been called for the server the command is executing against more than once, but there is no matching server/user/database Start() call for current command.. - /// - internal static string SqlDependency_NoMatchingServerDatabaseStart { - get { - return ResourceManager.GetString("SqlDependency_NoMatchingServerDatabaseStart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to When using SqlDependency without providing an options value, SqlDependency.Start() must be called for each server that is being executed against.. - /// - internal static string SqlDependency_NoMatchingServerStart { - get { - return ResourceManager.GetString("SqlDependency_NoMatchingServerStart", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The process cannot access the file specified because it has been opened in another transaction.. - /// - internal static string SqlFileStream_FileAlreadyInTransaction { - get { - return ResourceManager.GetString("SqlFileStream_FileAlreadyInTransaction", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An invalid parameter was passed to the function.. - /// - internal static string SqlFileStream_InvalidParameter { - get { - return ResourceManager.GetString("SqlFileStream_InvalidParameter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The path name is not valid.. - /// - internal static string SqlFileStream_InvalidPath { - get { - return ResourceManager.GetString("SqlFileStream_InvalidPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlFileStream is not supported on this platform.. - /// - internal static string SqlFileStream_NotSupported { - get { - return ResourceManager.GetString("SqlFileStream_NotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The path name is invalid or does not point to a disk file.. - /// - internal static string SqlFileStream_PathNotValidDiskResource { - get { - return ResourceManager.GetString("SqlFileStream_PathNotValidDiskResource", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The dbType {0} is invalid for this constructor.. - /// - internal static string SqlMetaData_InvalidSqlDbTypeForConstructorFormat { - get { - return ResourceManager.GetString("SqlMetaData_InvalidSqlDbTypeForConstructorFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The name is too long.. - /// - internal static string SqlMetaData_NameTooLong { - get { - return ResourceManager.GetString("SqlMetaData_NameTooLong", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The sort order and ordinal must either both be specified, or neither should be specified (SortOrder.Unspecified and -1). The values given were: order = {0}, ordinal = {1}.. - /// - internal static string SqlMetaData_SpecifyBothSortOrderAndOrdinal { - get { - return ResourceManager.GetString("SqlMetaData_SpecifyBothSortOrderAndOrdinal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL Type has already been loaded with data.. - /// - internal static string SqlMisc_AlreadyFilledMessage { - get { - return ResourceManager.GetString("SqlMisc_AlreadyFilledMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Arithmetic Overflow.. - /// - internal static string SqlMisc_ArithOverflowMessage { - get { - return ResourceManager.GetString("SqlMisc_ArithOverflowMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to access a closed XmlReader.. - /// - internal static string SqlMisc_ClosedXmlReaderMessage { - get { - return ResourceManager.GetString("SqlMisc_ClosedXmlReaderMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Two strings to be compared have different collation.. - /// - internal static string SqlMisc_CompareDiffCollationMessage { - get { - return ResourceManager.GetString("SqlMisc_CompareDiffCollationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Two strings to be concatenated have different collation.. - /// - internal static string SqlMisc_ConcatDiffCollationMessage { - get { - return ResourceManager.GetString("SqlMisc_ConcatDiffCollationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Conversion overflows.. - /// - internal static string SqlMisc_ConversionOverflowMessage { - get { - return ResourceManager.GetString("SqlMisc_ConversionOverflowMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.. - /// - internal static string SqlMisc_DateTimeOverflowMessage { - get { - return ResourceManager.GetString("SqlMisc_DateTimeOverflowMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Divide by zero error encountered.. - /// - internal static string SqlMisc_DivideByZeroMessage { - get { - return ResourceManager.GetString("SqlMisc_DivideByZeroMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The input wasn't in a correct format.. - /// - internal static string SqlMisc_FormatMessage { - get { - return ResourceManager.GetString("SqlMisc_FormatMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid array size.. - /// - internal static string SqlMisc_InvalidArraySizeMessage { - get { - return ResourceManager.GetString("SqlMisc_InvalidArraySizeMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid SqlDateTime.. - /// - internal static string SqlMisc_InvalidDateTimeMessage { - get { - return ResourceManager.GetString("SqlMisc_InvalidDateTimeMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid flag value.. - /// - internal static string SqlMisc_InvalidFlagMessage { - get { - return ResourceManager.GetString("SqlMisc_InvalidFlagMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to call {0} when the stream is closed.. - /// - internal static string SqlMisc_InvalidOpStreamClosed { - get { - return ResourceManager.GetString("SqlMisc_InvalidOpStreamClosed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to call {0} when the stream non-readable.. - /// - internal static string SqlMisc_InvalidOpStreamNonReadable { - get { - return ResourceManager.GetString("SqlMisc_InvalidOpStreamNonReadable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to call {0} when the stream is non-seekable.. - /// - internal static string SqlMisc_InvalidOpStreamNonSeekable { - get { - return ResourceManager.GetString("SqlMisc_InvalidOpStreamNonSeekable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attempt to call {0} when the stream non-writable.. - /// - internal static string SqlMisc_InvalidOpStreamNonWritable { - get { - return ResourceManager.GetString("SqlMisc_InvalidOpStreamNonWritable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid numeric precision/scale.. - /// - internal static string SqlMisc_InvalidPrecScaleMessage { - get { - return ResourceManager.GetString("SqlMisc_InvalidPrecScaleMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Message. - /// - internal static string SqlMisc_MessageString { - get { - return ResourceManager.GetString("SqlMisc_MessageString", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to SQL Type has not been loaded with data.. - /// - internal static string SqlMisc_NotFilledMessage { - get { - return ResourceManager.GetString("SqlMisc_NotFilledMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Null. - /// - internal static string SqlMisc_NullString { - get { - return ResourceManager.GetString("SqlMisc_NullString", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data is Null. This method or property cannot be called on Null values.. - /// - internal static string SqlMisc_NullValueMessage { - get { - return ResourceManager.GetString("SqlMisc_NullValueMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Conversion from SqlDecimal to Decimal overflows.. - /// - internal static string SqlMisc_NumeToDecOverflowMessage { - get { - return ResourceManager.GetString("SqlMisc_NumeToDecOverflowMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occurred while reading.. - /// - internal static string SqlMisc_StreamErrorMessage { - get { - return ResourceManager.GetString("SqlMisc_StreamErrorMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Subclass did not override a required method.. - /// - internal static string SqlMisc_SubclassMustOverride { - get { - return ResourceManager.GetString("SqlMisc_SubclassMustOverride", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to A time zone was specified. SqlDateTime does not support time zones.. - /// - internal static string SqlMisc_TimeZoneSpecifiedMessage { - get { - return ResourceManager.GetString("SqlMisc_TimeZoneSpecifiedMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Data returned is larger than 2Gb in size. Use SequentialAccess command behavior in order to get all of the data.. - /// - internal static string SqlMisc_TruncationMaxDataMessage { - get { - return ResourceManager.GetString("SqlMisc_TruncationMaxDataMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Numeric arithmetic causes truncation.. - /// - internal static string SqlMisc_TruncationMessage { - get { - return ResourceManager.GetString("SqlMisc_TruncationMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported.. - /// - internal static string SQLMSF_FailoverPartnerNotSupported { - get { - return ResourceManager.GetString("SQLMSF_FailoverPartnerNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to This SqlCommand object is already associated with another SqlDependency object.. - /// - internal static string SQLNotify_AlreadyHasCommand { - get { - return ResourceManager.GetString("SQLNotify_AlreadyHasCommand", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to DBNull value for parameter '{0}' is not supported. Table-valued parameters cannot be DBNull.. - /// - internal static string SqlParameter_DBNullNotSupportedForTVP { - get { - return ResourceManager.GetString("SqlParameter_DBNullNotSupportedForTVP", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Precision '{0}' required to send all values in column '{1}' exceeds the maximum supported precision '{2}'. The values must all fit in a single precision.. - /// - internal static string SqlParameter_InvalidTableDerivedPrecisionForTvp { - get { - return ResourceManager.GetString("SqlParameter_InvalidTableDerivedPrecisionForTvp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to TypeName specified for parameter '{0}'. TypeName must only be set for Structured parameters.. - /// - internal static string SqlParameter_UnexpectedTypeNameForNonStruct { - get { - return ResourceManager.GetString("SqlParameter_UnexpectedTypeNameForNonStruct", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to ParameterDirection '{0}' specified for parameter '{1}' is not supported. Table-valued parameters only support ParameterDirection.Input.. - /// - internal static string SqlParameter_UnsupportedTVPOutputParameter { - get { - return ResourceManager.GetString("SqlParameter_UnsupportedTVPOutputParameter", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The sort ordinal {0} was specified twice.. - /// - internal static string SqlProvider_DuplicateSortOrdinal { - get { - return ResourceManager.GetString("SqlProvider_DuplicateSortOrdinal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The size of column '{0}' is not supported. The size is {1}.. - /// - internal static string SqlProvider_InvalidDataColumnMaxLength { - get { - return ResourceManager.GetString("SqlProvider_InvalidDataColumnMaxLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The type of column '{0}' is not supported. The type is '{1}'. - /// - internal static string SqlProvider_InvalidDataColumnType { - get { - return ResourceManager.GetString("SqlProvider_InvalidDataColumnType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The sort ordinal {0} was not specified.. - /// - internal static string SqlProvider_MissingSortOrdinal { - get { - return ResourceManager.GetString("SqlProvider_MissingSortOrdinal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to There are not enough fields in the Structured type. Structured types must have at least one field.. - /// - internal static string SqlProvider_NotEnoughColumnsInStructuredType { - get { - return ResourceManager.GetString("SqlProvider_NotEnoughColumnsInStructuredType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The sort ordinal {0} on field {1} exceeds the total number of fields.. - /// - internal static string SqlProvider_SortOrdinalGreaterThanFieldCount { - get { - return ResourceManager.GetString("SqlProvider_SortOrdinalGreaterThanFieldCount", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' is not less than '{1}'; '{2}' cannot be greater than '{3}'.. - /// - internal static string SqlRetryLogic_InvalidMinMaxPair { - get { - return ResourceManager.GetString("SqlRetryLogic_InvalidMinMaxPair", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Value '{0}' is out of range. Must be between {1} and {2}.. - /// - internal static string SqlRetryLogic_InvalidRange { - get { - return ResourceManager.GetString("SqlRetryLogic_InvalidRange", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The retry has been canceled at attempt {0}.. - /// - internal static string SqlRetryLogic_RetryCanceled { - get { - return ResourceManager.GetString("SqlRetryLogic_RetryCanceled", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The number of retries has exceeded the maximum of {0} attempt(s).. - /// - internal static string SqlRetryLogic_RetryExceeded { - get { - return ResourceManager.GetString("SqlRetryLogic_RetryExceeded", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Connecting to a mirrored SQL Server instance using the ApplicationIntent ReadOnly connection option is not supported.. - /// - internal static string SQLROR_FailoverNotSupported { - get { - return ResourceManager.GetString("SQLROR_FailoverNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid routing information received.. - /// - internal static string SQLROR_InvalidRoutingInfo { - get { - return ResourceManager.GetString("SQLROR_InvalidRoutingInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Two or more redirections have occurred. Only one redirection per login is allowed.. - /// - internal static string SQLROR_RecursiveRoutingNotSupported { - get { - return ResourceManager.GetString("SQLROR_RecursiveRoutingNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Server provided routing information, but timeout already expired.. - /// - internal static string SQLROR_TimeoutAfterRoutingInfo { - get { - return ResourceManager.GetString("SQLROR_TimeoutAfterRoutingInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unexpected routing information received.. - /// - internal static string SQLROR_UnexpectedRoutingInfo { - get { - return ResourceManager.GetString("SQLROR_UnexpectedRoutingInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to UDT size must be less than {1}, size: {0}. - /// - internal static string SQLUDT_InvalidSize { - get { - return ResourceManager.GetString("SQLUDT_InvalidSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified type is not registered on the target server. {0}.. - /// - internal static string SQLUDT_InvalidSqlType { - get { - return ResourceManager.GetString("SQLUDT_InvalidSqlType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' is an invalid user defined type, reason: {1}.. - /// - internal static string SqlUdt_InvalidUdtMessage { - get { - return ResourceManager.GetString("SqlUdt_InvalidUdtMessage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to UdtTypeName property must be set for UDT parameters.. - /// - internal static string SQLUDT_InvalidUdtTypeName { - get { - return ResourceManager.GetString("SQLUDT_InvalidUdtTypeName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to range: 0-8000. - /// - internal static string SQLUDT_MaxByteSizeValue { - get { - return ResourceManager.GetString("SQLUDT_MaxByteSizeValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to unexpected error encountered in SqlClient data provider. {0}. - /// - internal static string SQLUDT_Unexpected { - get { - return ResourceManager.GetString("SQLUDT_Unexpected", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to UdtTypeName property must be set only for UDT parameters.. - /// - internal static string SQLUDT_UnexpectedUdtTypeName { - get { - return ResourceManager.GetString("SQLUDT_UnexpectedUdtTypeName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to no UDT attribute. - /// - internal static string SqlUdtReason_NoUdtAttribute { - get { - return ResourceManager.GetString("SqlUdtReason_NoUdtAttribute", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to '{0}' is not a supported handle type.. - /// - internal static string SSPIInvalidHandleType { - get { - return ResourceManager.GetString("SSPIInvalidHandleType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attestation information was not returned by SQL Server. Enclave type is '{0}' and enclave attestation URL is '{1}'.. - /// - internal static string TCE_AttestationInfoNotReturnedFromSQLServer { - get { - return ResourceManager.GetString("TCE_AttestationInfoNotReturnedFromSQLServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error occurred when generating enclave package. Attestation Protocol has not been specified in the connection string, but the query requires enclave computations.. - /// - internal static string TCE_AttestationProtocolNotSpecifiedForGeneratingEnclavePackage { - get { - return ResourceManager.GetString("TCE_AttestationProtocolNotSpecifiedForGeneratingEnclavePackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have specified the attestation protocol in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details.. - /// - internal static string TCE_AttestationProtocolNotSupported { - get { - return ResourceManager.GetString("TCE_AttestationProtocolNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to initialize connection. The attestation protocol '{0}' does not support the enclave type '{1}'.. - /// - internal static string TCE_AttestationProtocolNotSupportEnclaveType { - get { - return ResourceManager.GetString("TCE_AttestationProtocolNotSupportEnclaveType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have specified the enclave attestation URL in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details.. - /// - internal static string TCE_AttestationURLNotSupported { - get { - return ResourceManager.GetString("TCE_AttestationURLNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} should be identical on all commands ({1}, {2}, {3}, {4}) when doing batch updates.. - /// - internal static string TCE_BatchedUpdateColumnEncryptionSettingMismatch { - get { - return ResourceManager.GetString("TCE_BatchedUpdateColumnEncryptionSettingMismatch", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to instantiate an enclave provider with type '{1}' for name '{0}'. Error message: {2}. - /// - internal static string TCE_CannotCreateSqlColumnEncryptionEnclaveProvider { - get { - return ResourceManager.GetString("TCE_CannotCreateSqlColumnEncryptionEnclaveProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to read the configuration section for enclave providers. Make sure the section is correctly formatted in your application configuration file. Error Message: {0}. - /// - internal static string TCE_CannotGetSqlColumnEncryptionEnclaveProviderConfig { - get { - return ResourceManager.GetString("TCE_CannotGetSqlColumnEncryptionEnclaveProviderConfig", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Key store providers cannot be set more than once.. - /// - internal static string TCE_CanOnlyCallOnce { - get { - return ResourceManager.GetString("TCE_CanOnlyCallOnce", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate with thumbprint '{0}' not found in certificate store '{1}' in certificate location '{2}'.. - /// - internal static string TCE_CertificateNotFound { - get { - return ResourceManager.GetString("TCE_CertificateNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate with thumbprint '{0}' not found in certificate store '{1}' in certificate location '{2}'. Verify the certificate path in the column master key definition in the database is correct, and the certificate has been imported correctly into the certificate location/store.. - /// - internal static string TCE_CertificateNotFoundSysErr { - get { - return ResourceManager.GetString("TCE_CertificateNotFoundSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate specified in key path '{0}' does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly.. - /// - internal static string TCE_CertificateWithNoPrivateKey { - get { - return ResourceManager.GetString("TCE_CertificateWithNoPrivateKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate specified in key path '{0}' does not have a private key to decrypt a column encryption key. Verify the certificate is imported correctly.. - /// - internal static string TCE_CertificateWithNoPrivateKeySysErr { - get { - return ResourceManager.GetString("TCE_CertificateWithNoPrivateKeySysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to decrypt column '{0}'.. - /// - internal static string TCE_ColumnDecryptionFailed { - get { - return ResourceManager.GetString("TCE_ColumnDecryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Encrypted column encryption keys not found when trying to send the keys to the enclave.. - /// - internal static string TCE_ColumnEncryptionKeysNotFound { - get { - return ResourceManager.GetString("TCE_ColumnEncryptionKeysNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. The signature returned by SQL Server for enclave-enabled column master key, specified at key path '{0}', cannot be null or empty.. - /// - internal static string TCE_ColumnMasterKeySignatureNotFound { - get { - return ResourceManager.GetString("TCE_ColumnMasterKeySignatureNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The signature returned by SQL Server for the column master key, specified in key path '{0}', is invalid (does not match the computed signature). Recreate column master key metadata, making sure the signature inside the metadata is computed using the column master key being referenced in the metadata. If the error persists, please contact Microsoft for assistance.. - /// - internal static string TCE_ColumnMasterKeySignatureVerificationFailed { - get { - return ResourceManager.GetString("TCE_ColumnMasterKeySignatureVerificationFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies an attestation protocol for its corresponding enclave attestation service.. - /// - internal static string TCE_DbConnectionString_AttestationProtocol { - get { - return ResourceManager.GetString("TCE_DbConnectionString_AttestationProtocol", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specifies an IP address preference when connecting to SQL instances.. - /// - internal static string TCE_DbConnectionString_IPAddressPreference { - get { - return ResourceManager.GetString("TCE_DbConnectionString_IPAddressPreference", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Decryption failed. The last 10 bytes of the encrypted column encryption key are: '{0}'. The first 10 bytes of ciphertext are: '{1}'.. - /// - internal static string TCE_DecryptionFailed { - get { - return ResourceManager.GetString("TCE_DecryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Empty argument '{0}' specified when constructing an object of type '{1}'. '{0}' cannot be empty.. - /// - internal static string TCE_EmptyArgumentInConstructorInternal { - get { - return ResourceManager.GetString("TCE_EmptyArgumentInConstructorInternal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Argument '{0}' cannot be empty when executing method '{1}.{2}'.. - /// - internal static string TCE_EmptyArgumentInternal { - get { - return ResourceManager.GetString("TCE_EmptyArgumentInternal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty certificate thumbprint specified in certificate path '{0}'.. - /// - internal static string TCE_EmptyCertificateThumbprint { - get { - return ResourceManager.GetString("TCE_EmptyCertificateThumbprint", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty certificate thumbprint specified in certificate path '{0}'.. - /// - internal static string TCE_EmptyCertificateThumbprintSysErr { - get { - return ResourceManager.GetString("TCE_EmptyCertificateThumbprintSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCngKeyId { - get { - return ResourceManager.GetString("TCE_EmptyCngKeyId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCngKeyIdSysErr { - get { - return ResourceManager.GetString("TCE_EmptyCngKeyIdSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCngName { - get { - return ResourceManager.GetString("TCE_EmptyCngName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCngNameSysErr { - get { - return ResourceManager.GetString("TCE_EmptyCngNameSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty column encryption key specified.. - /// - internal static string TCE_EmptyColumnEncryptionKey { - get { - return ResourceManager.GetString("TCE_EmptyColumnEncryptionKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCspKeyId { - get { - return ResourceManager.GetString("TCE_EmptyCspKeyId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCspKeyIdSysErr { - get { - return ResourceManager.GetString("TCE_EmptyCspKeyIdSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCspName { - get { - return ResourceManager.GetString("TCE_EmptyCspName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_EmptyCspNameSysErr { - get { - return ResourceManager.GetString("TCE_EmptyCspNameSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Empty encrypted column encryption key specified.. - /// - internal static string TCE_EmptyEncryptedColumnEncryptionKey { - get { - return ResourceManager.GetString("TCE_EmptyEncryptedColumnEncryptionKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid key store provider name specified. Key store provider names cannot be null or empty.. - /// - internal static string TCE_EmptyProviderName { - get { - return ResourceManager.GetString("TCE_EmptyProviderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have specified the enclave attestation URL and attestation protocol in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details.. - /// - internal static string TCE_EnclaveComputationsNotSupported { - get { - return ResourceManager.GetString("TCE_EnclaveComputationsNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to No enclave provider found for enclave type '{0}' and attestation protocol '{1}'. Please specify the correct attestation protocol in the connection string.. - /// - internal static string TCE_EnclaveProviderNotFound { - get { - return ResourceManager.GetString("TCE_EnclaveProviderNotFound", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Executing a query requires enclave computations, but the application configuration is missing the enclave provider section.. - /// - internal static string TCE_EnclaveProvidersNotConfiguredForEnclaveBasedQuery { - get { - return ResourceManager.GetString("TCE_EnclaveProvidersNotConfiguredForEnclaveBasedQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to You have specified the enclave attestation URL in the connection string, but the SQL Server did not return an enclave type. Please make sure the enclave type is correctly configured in your instance - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details.. - /// - internal static string TCE_EnclaveTypeNotReturned { - get { - return ResourceManager.GetString("TCE_EnclaveTypeNotReturned", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The enclave type '{0}' returned from the server is not supported.. - /// - internal static string TCE_EnclaveTypeNotSupported { - get { - return ResourceManager.GetString("TCE_EnclaveTypeNotSupported", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Enclave type received from SQL Server is null or empty when executing a query requiring enclave computations.. - /// - internal static string TCE_EnclaveTypeNullForEnclaveBasedQuery { - get { - return ResourceManager.GetString("TCE_EnclaveTypeNullForEnclaveBasedQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error encountered while generating package to be sent to enclave. Error message: {0}. - /// - internal static string TCE_ExceptionWhenGeneratingEnclavePackage { - get { - return ResourceManager.GetString("TCE_ExceptionWhenGeneratingEnclavePackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Failed to encrypt byte package to be sent to the enclave. Error Message: {0}. - /// - internal static string TCE_FailedToEncryptRegisterRulesBytePackage { - get { - return ResourceManager.GetString("TCE_FailedToEncryptRegisterRulesBytePackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. The buffer specified by argument '{0}' for method '{1}.{2}' has insufficient space.. - /// - internal static string TCE_InsufficientBuffer { - get { - return ResourceManager.GetString("TCE_InsufficientBuffer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified ciphertext's encryption algorithm version '{0}' does not match the expected encryption algorithm version '{1}'.. - /// - internal static string TCE_InvalidAlgorithmVersion { - get { - return ResourceManager.GetString("TCE_InvalidAlgorithmVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified encrypted column encryption key contains an invalid encryption algorithm version '{0}'. Expected version is '{1}'.. - /// - internal static string TCE_InvalidAlgorithmVersionInEncryptedCEK { - get { - return ResourceManager.GetString("TCE_InvalidAlgorithmVersionInEncryptedCEK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid attestation parameters specified by the enclave provider for enclave type '{0}'. Error occurred when converting the value '{1}' of parameter '{2}' to unsigned int. Error Message: {3}. - /// - internal static string TCE_InvalidAttestationParameterUnableToConvertToUnsignedInt { - get { - return ResourceManager.GetString("TCE_InvalidAttestationParameterUnableToConvertToUnsignedInt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified ciphertext has an invalid authentication tag.. - /// - internal static string TCE_InvalidAuthenticationTag { - get { - return ResourceManager.GetString("TCE_InvalidAuthenticationTag", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid certificate location '{0}' in certificate path '{1}'. Use the following format: <certificate location>{4}<certificate store>{4}<certificate thumbprint>, where <certificate location> is either '{2}' or '{3}'.. - /// - internal static string TCE_InvalidCertificateLocation { - get { - return ResourceManager.GetString("TCE_InvalidCertificateLocation", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid certificate location '{0}' in certificate path '{1}'. Use the following format: <certificate location>{4}<certificate store>{4}<certificate thumbprint>, where <certificate location> is either '{2}' or '{3}'.. - /// - internal static string TCE_InvalidCertificateLocationSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCertificateLocationSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid certificate path: '{0}'. Use the following format: <certificate location>{3}<certificate store>{3}<certificate thumbprint>, where <certificate location> is either '{1}' or '{2}'.. - /// - internal static string TCE_InvalidCertificatePath { - get { - return ResourceManager.GetString("TCE_InvalidCertificatePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid certificate path: '{0}'. Use the following format: <certificate location>{3}<certificate store>{3}<certificate thumbprint>, where <certificate location> is either '{1}' or '{2}'.. - /// - internal static string TCE_InvalidCertificatePathSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCertificatePathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key signature does not match the signature computed with the column master key (certificate) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect.. - /// - internal static string TCE_InvalidCertificateSignature { - get { - return ResourceManager.GetString("TCE_InvalidCertificateSignature", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid certificate store '{0}' specified in certificate path '{1}'. Expected value: '{2}'.. - /// - internal static string TCE_InvalidCertificateStore { - get { - return ResourceManager.GetString("TCE_InvalidCertificateStore", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid certificate store '{0}' specified in certificate path '{1}'. Expected value: '{2}'.. - /// - internal static string TCE_InvalidCertificateStoreSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCertificateStoreSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect.. - /// - internal static string TCE_InvalidCiphertextLengthInEncryptedCEK { - get { - return ResourceManager.GetString("TCE_InvalidCiphertextLengthInEncryptedCEK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect.. - /// - internal static string TCE_InvalidCiphertextLengthInEncryptedCEKCng { - get { - return ResourceManager.GetString("TCE_InvalidCiphertextLengthInEncryptedCEKCng", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptographic Service provider (CSP) path may be incorrect.. - /// - internal static string TCE_InvalidCiphertextLengthInEncryptedCEKCsp { - get { - return ResourceManager.GetString("TCE_InvalidCiphertextLengthInEncryptedCEKCsp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified ciphertext has an invalid size of {0} bytes, which is below the minimum {1} bytes required for decryption.. - /// - internal static string TCE_InvalidCipherTextSize { - get { - return ResourceManager.GetString("TCE_InvalidCipherTextSize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: '{0}'. Verify that the CNG provider name '{1}' is valid, installed on the machine, and the key '{2}' exists.. - /// - internal static string TCE_InvalidCngKey { - get { - return ResourceManager.GetString("TCE_InvalidCngKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: '{0}'. Verify that the CNG provider name '{1}' is valid, installed on the machine, and the key '{2}' exists.. - /// - internal static string TCE_InvalidCngKeySysErr { - get { - return ResourceManager.GetString("TCE_InvalidCngKeySysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_InvalidCngPath { - get { - return ResourceManager.GetString("TCE_InvalidCngPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_InvalidCngPathSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCngPathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid key identifier: '{0}'. Verify that the key identifier in column master key path: '{1}' is valid and exists in the CSP.. - /// - internal static string TCE_InvalidCspKeyId { - get { - return ResourceManager.GetString("TCE_InvalidCspKeyId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid key identifier: '{0}'. Verify that the key identifier in column master key path: '{1}' is valid and exists in the CSP.. - /// - internal static string TCE_InvalidCspKeyIdSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCspKeyIdSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid Microsoft cryptographic service provider (CSP) name: '{0}'. Verify that the CSP provider name in column master key path: '{1}' is valid and installed on the machine.. - /// - internal static string TCE_InvalidCspName { - get { - return ResourceManager.GetString("TCE_InvalidCspName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid Microsoft cryptographic service provider (CSP) name: '{0}'. Verify that the CSP provider name in column master key path: '{1}' is valid and installed on the machine.. - /// - internal static string TCE_InvalidCspNameSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCspNameSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_InvalidCspPath { - get { - return ResourceManager.GetString("TCE_InvalidCspPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>.. - /// - internal static string TCE_InvalidCspPathSysErr { - get { - return ResourceManager.GetString("TCE_InvalidCspPathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid key store provider name '{0}'. '{1}' prefix is reserved for system key store providers.. - /// - internal static string TCE_InvalidCustomKeyStoreProviderName { - get { - return ResourceManager.GetString("TCE_InvalidCustomKeyStoreProviderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. The given database id '{0}' is not valid. Error occurred when converting the database id to unsigned int. Error Message: {1}. - /// - internal static string TCE_InvalidDatabaseIdUnableToCastToUnsignedInt { - get { - return ResourceManager.GetString("TCE_InvalidDatabaseIdUnableToCastToUnsignedInt", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Error occurred when populating enclave metadata. The referenced column encryption key ordinal '{0}' is missing in the encryption metadata returned by SQL Server. Max ordinal is '{1}'.. - /// - internal static string TCE_InvalidEncryptionKeyOrdinalEnclaveMetadata { - get { - return ResourceManager.GetString("TCE_InvalidEncryptionKeyOrdinalEnclaveMetadata", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Error occurred when populating parameter metadata. The referenced column encryption key ordinal '{0}' is missing in the encryption metadata returned by SQL Server. Max ordinal is '{1}'.. - /// - internal static string TCE_InvalidEncryptionKeyOrdinalParameterMetadata { - get { - return ResourceManager.GetString("TCE_InvalidEncryptionKeyOrdinalParameterMetadata", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption type '{1}' specified for the column in the database is either invalid or corrupted. Valid encryption types for algorithm '{0}' are: {2}.. - /// - internal static string TCE_InvalidEncryptionType { - get { - return ResourceManager.GetString("TCE_InvalidEncryptionType", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid key encryption algorithm specified: '{0}'. Expected value: '{1}'.. - /// - internal static string TCE_InvalidKeyEncryptionAlgorithm { - get { - return ResourceManager.GetString("TCE_InvalidKeyEncryptionAlgorithm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Invalid key encryption algorithm specified: '{0}'. Expected value: '{1}'.. - /// - internal static string TCE_InvalidKeyEncryptionAlgorithmSysErr { - get { - return ResourceManager.GetString("TCE_InvalidKeyEncryptionAlgorithmSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. The given key id '{0}' is not valid. Error occurred when converting the key id to unsigned short. Error Message: {1}. - /// - internal static string TCE_InvalidKeyIdUnableToCastToUnsignedShort { - get { - return ResourceManager.GetString("TCE_InvalidKeyIdUnableToCastToUnsignedShort", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The column encryption key has been successfully decrypted but its length: {1} does not match the length: {2} for algorithm '{0}'. Verify the encrypted value of the column encryption key in the database.. - /// - internal static string TCE_InvalidKeySize { - get { - return ResourceManager.GetString("TCE_InvalidKeySize", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid key store provider name: '{0}'. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly.. - /// - internal static string TCE_InvalidKeyStoreProviderName { - get { - return ResourceManager.GetString("TCE_InvalidKeyStoreProviderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key signature does not match the signature computed with the column master key (asymmetric key) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect.. - /// - internal static string TCE_InvalidSignature { - get { - return ResourceManager.GetString("TCE_InvalidSignature", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect.. - /// - internal static string TCE_InvalidSignatureInEncryptedCEK { - get { - return ResourceManager.GetString("TCE_InvalidSignatureInEncryptedCEK", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect.. - /// - internal static string TCE_InvalidSignatureInEncryptedCEKCng { - get { - return ResourceManager.GetString("TCE_InvalidSignatureInEncryptedCEKCng", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft cryptographic service provider (CSP) path may be incorrect.. - /// - internal static string TCE_InvalidSignatureInEncryptedCEKCsp { - get { - return ResourceManager.GetString("TCE_InvalidSignatureInEncryptedCEKCsp", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to decrypt a column encryption key using key store provider: '{0}'. Verify the properties of the column encryption key and its column master key in your database. The last 10 bytes of the encrypted column encryption key are: '{1}'.. - /// - internal static string TCE_KeyDecryptionFailed { - get { - return ResourceManager.GetString("TCE_KeyDecryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to decrypt a column encryption key using key store provider: '{0}'. The last 10 bytes of the encrypted column encryption key are: '{1}'.. - /// - internal static string TCE_KeyDecryptionFailedCertStore { - get { - return ResourceManager.GetString("TCE_KeyDecryptionFailedCertStore", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes.. - /// - internal static string TCE_LargeCertificatePathLength { - get { - return ResourceManager.GetString("TCE_LargeCertificatePathLength", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes.. - /// - internal static string TCE_LargeCertificatePathLengthSysErr { - get { - return ResourceManager.GetString("TCE_LargeCertificatePathLengthSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Error occurred when parsing the results of '{0}'. The attestation information resultset is expected to contain only one row, but it contains multiple rows.. - /// - internal static string TCE_MultipleRowsReturnedForAttestationInfo { - get { - return ResourceManager.GetString("TCE_MultipleRowsReturnedForAttestationInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error occurred when generating enclave package. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is '{0}'.. - /// - internal static string TCE_NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage { - get { - return ResourceManager.GetString("TCE_NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Error occurred when reading '{0}' resultset. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is '{1}'.. - /// - internal static string TCE_NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe { - get { - return ResourceManager.GetString("TCE_NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to {0} instance in use does not support column encryption.. - /// - internal static string TCE_NotSupportedByServer { - get { - return ResourceManager.GetString("TCE_NotSupportedByServer", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Null argument '{0}' specified when constructing an object of type '{1}'. '{0}' cannot be null.. - /// - internal static string TCE_NullArgumentInConstructorInternal { - get { - return ResourceManager.GetString("TCE_NullArgumentInConstructorInternal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Argument '{0}' cannot be null when executing method '{1}.{2}'.. - /// - internal static string TCE_NullArgumentInternal { - get { - return ResourceManager.GetString("TCE_NullArgumentInternal", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Certificate path cannot be null. Use the following format: <certificate location>{2}<certificate store>{2}<certificate thumbprint>, where <certificate location> is either '{0}' or '{1}'.. - /// - internal static string TCE_NullCertificatePath { - get { - return ResourceManager.GetString("TCE_NullCertificatePath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Certificate path cannot be null. Use the following format: <certificate location>{2}<certificate store>{2}<certificate thumbprint>, where <certificate location> is either '{0}' or '{1}'.. - /// - internal static string TCE_NullCertificatePathSysErr { - get { - return ResourceManager.GetString("TCE_NullCertificatePathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Ciphertext value cannot be null.. - /// - internal static string TCE_NullCipherText { - get { - return ResourceManager.GetString("TCE_NullCipherText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{0}<Key Identifier>.. - /// - internal static string TCE_NullCngPath { - get { - return ResourceManager.GetString("TCE_NullCngPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{0}<Key Identifier>.. - /// - internal static string TCE_NullCngPathSysErr { - get { - return ResourceManager.GetString("TCE_NullCngPathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Encryption algorithm cannot be null. Valid algorithms are: {0}.. - /// - internal static string TCE_NullColumnEncryptionAlgorithm { - get { - return ResourceManager.GetString("TCE_NullColumnEncryptionAlgorithm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column encryption key cannot be null.. - /// - internal static string TCE_NullColumnEncryptionKey { - get { - return ResourceManager.GetString("TCE_NullColumnEncryptionKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Column encryption key cannot be null.. - /// - internal static string TCE_NullColumnEncryptionKeySysErr { - get { - return ResourceManager.GetString("TCE_NullColumnEncryptionKeySysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{0}<Key Identifier>.. - /// - internal static string TCE_NullCspPath { - get { - return ResourceManager.GetString("TCE_NullCspPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{0}<Key Identifier>.. - /// - internal static string TCE_NullCspPathSysErr { - get { - return ResourceManager.GetString("TCE_NullCspPathSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column encryption key store provider dictionary cannot be null. Expecting a non-null value.. - /// - internal static string TCE_NullCustomKeyStoreProviderDictionary { - get { - return ResourceManager.GetString("TCE_NullCustomKeyStoreProviderDictionary", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Enclave package is null during execution of an enclave based query. Enclave type is '{0}' and enclaveAttestationUrl is '{1}'.. - /// - internal static string TCE_NullEnclavePackageForEnclaveBasedQuery { - get { - return ResourceManager.GetString("TCE_NullEnclavePackageForEnclaveBasedQuery", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Enclave session is null during query execution. Enclave type is '{0}' and enclaveAttestationUrl is '{1}'.. - /// - internal static string TCE_NullEnclaveSessionDuringQueryExecution { - get { - return ResourceManager.GetString("TCE_NullEnclaveSessionDuringQueryExecution", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to communicate with the enclave. Null enclave session information received from the enclave provider. Enclave type is '{0}' and enclave attestation URL is '{1}'.. - /// - internal static string TCE_NullEnclaveSessionReturnedFromProvider { - get { - return ResourceManager.GetString("TCE_NullEnclaveSessionReturnedFromProvider", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Encrypted column encryption key cannot be null.. - /// - internal static string TCE_NullEncryptedColumnEncryptionKey { - get { - return ResourceManager.GetString("TCE_NullEncryptedColumnEncryptionKey", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Key encryption algorithm cannot be null.. - /// - internal static string TCE_NullKeyEncryptionAlgorithm { - get { - return ResourceManager.GetString("TCE_NullKeyEncryptionAlgorithm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Key encryption algorithm cannot be null.. - /// - internal static string TCE_NullKeyEncryptionAlgorithmSysErr { - get { - return ResourceManager.GetString("TCE_NullKeyEncryptionAlgorithmSysErr", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Plaintext value cannot be null.. - /// - internal static string TCE_NullPlainText { - get { - return ResourceManager.GetString("TCE_NullPlainText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Null reference specified for key store provider '{0}'. Expecting a non-null value.. - /// - internal static string TCE_NullProviderValue { - get { - return ResourceManager.GetString("TCE_NullProviderValue", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. Failed to serialize keys to be sent to the enclave. The start offset specified by argument '{0}' for method {1}.{2} is out of bounds.. - /// - internal static string TCE_OffsetOutOfBounds { - get { - return ResourceManager.GetString("TCE_OffsetOutOfBounds", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to decrypt parameter '{0}'.. - /// - internal static string TCE_ParamDecryptionFailed { - get { - return ResourceManager.GetString("TCE_ParamDecryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to encrypt parameter '{0}'.. - /// - internal static string TCE_ParamEncryptionFailed { - get { - return ResourceManager.GetString("TCE_ParamEncryptionFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Metadata for parameter '{1}' in statement or procedure '{2}' is missing in resultset returned by {0}.. - /// - internal static string TCE_ParamEncryptionMetaDataMissing { - get { - return ResourceManager.GetString("TCE_ParamEncryptionMetaDataMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot set {0} for {3} '{1}' because encryption is not enabled for the statement or procedure '{2}'.. - /// - internal static string TCE_ParamInvalidForceColumnEncryptionSetting { - get { - return ResourceManager.GetString("TCE_ParamInvalidForceColumnEncryptionSetting", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Cannot execute statement or procedure '{1}' because {2} was set for {3} '{0}' and the database expects this parameter to be sent as plaintext. This may be due to a configuration error.. - /// - internal static string TCE_ParamUnExpectedEncryptionMetadata { - get { - return ResourceManager.GetString("TCE_ParamUnExpectedEncryptionMetadata", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. Metadata for parameters for command '{1}' in a batch is missing in the resultset returned by {0}.. - /// - internal static string TCE_ProcEncryptionMetaDataMissing { - get { - return ResourceManager.GetString("TCE_ProcEncryptionMetaDataMissing", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Retrieving encrypted column '{0}' with {1} is not supported.. - /// - internal static string TCE_SequentialAccessNotSupportedOnEncryptedColumn { - get { - return ResourceManager.GetString("TCE_SequentialAccessNotSupportedOnEncryptedColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal Error. SqlColumnEncryptionEnclaveProviderName cannot be null or empty.. - /// - internal static string TCE_SqlColumnEncryptionEnclaveProviderNameCannotBeEmpty { - get { - return ResourceManager.GetString("TCE_SqlColumnEncryptionEnclaveProviderNameCannotBeEmpty", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Retrieving encrypted column '{0}' as a {1} is not supported.. - /// - internal static string TCE_StreamNotSupportOnEncryptedColumn { - get { - return ResourceManager.GetString("TCE_StreamNotSupportOnEncryptedColumn", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unable to verify a column master key signature. Error message: {0}. - /// - internal static string TCE_UnableToVerifyColumnMasterKeySignature { - get { - return ResourceManager.GetString("TCE_UnableToVerifyColumnMasterKeySignature", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. The result returned by '{0}' is invalid. The attestation information resultset is missing for enclave type '{1}'.. - /// - internal static string TCE_UnexpectedDescribeParamFormatAttestationInfo { - get { - return ResourceManager.GetString("TCE_UnexpectedDescribeParamFormatAttestationInfo", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Internal error. The result returned by '{0}' is invalid. The parameter metadata resultset is missing.. - /// - internal static string TCE_UnexpectedDescribeParamFormatParameterMetadata { - get { - return ResourceManager.GetString("TCE_UnexpectedDescribeParamFormatParameterMetadata", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption algorithm '{0}' for the column in the database is either invalid or corrupted. Valid algorithms are: {1}.. - /// - internal static string TCE_UnknownColumnEncryptionAlgorithm { - get { - return ResourceManager.GetString("TCE_UnknownColumnEncryptionAlgorithm", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption algorithm id '{0}' for the column in the database is either invalid or corrupted. Valid encryption algorithm ids are: {1}.. - /// - internal static string TCE_UnknownColumnEncryptionAlgorithmId { - get { - return ResourceManager.GetString("TCE_UnknownColumnEncryptionAlgorithmId", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to decrypt a column encryption key. Invalid key store provider name: '{0}'. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly.. - /// - internal static string TCE_UnrecognizedKeyStoreProviderName { - get { - return ResourceManager.GetString("TCE_UnrecognizedKeyStoreProviderName", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Encryption and decryption of data type '{0}' is not supported.. - /// - internal static string TCE_UnsupportedDatatype { - get { - return ResourceManager.GetString("TCE_UnsupportedDatatype", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Normalization version '{0}' received from {2} is not supported. Valid normalization versions are: {1}.. - /// - internal static string TCE_UnsupportedNormalizationVersion { - get { - return ResourceManager.GetString("TCE_UnsupportedNormalizationVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Column master key path '{0}' received from server '{1}' is not a trusted key path.. - /// - internal static string TCE_UntrustedKeyPath { - get { - return ResourceManager.GetString("TCE_UntrustedKeyPath", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to check if the enclave is running in the production mode. Contact Customer Support Services.. - /// - internal static string VerifyEnclaveDebuggable { - get { - return ResourceManager.GetString("VerifyEnclaveDebuggable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Could not verify enclave policy due to a difference between the expected and actual values of the policy on property '{0}'. Actual: '{1}', Expected: '{2}' - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details.. - /// - internal static string VerifyEnclavePolicyFailedFormat { - get { - return ResourceManager.GetString("VerifyEnclavePolicyFailedFormat", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Signature verification of the enclave report failed. The report signature does not match the signature computed using the HGS root certificate. Verify the DNS mapping for the endpoint - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. If correct, contact Customer Support Services.. - /// - internal static string VerifyEnclaveReportFailed { - get { - return ResourceManager.GetString("VerifyEnclaveReportFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The enclave report received from SQL Server is not in the correct format. Contact Customer Support Services.. - /// - internal static string VerifyEnclaveReportFormatFailed { - get { - return ResourceManager.GetString("VerifyEnclaveReportFormatFailed", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Failed to build a chain of trust between the enclave host's health report and the HGS root certificate for attestation URL '{0}' with status: '{1}'. Verify the attestation URL matches the URL configured on the SQL Server - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. If both the client and SQL Server use the same attestation service, contact Customer Support Services.. - /// - internal static string VerifyHealthCertificateChainFormat { - get { - return ResourceManager.GetString("VerifyHealthCertificateChainFormat", resourceCulture); - } - } - } -} diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.resx deleted file mode 100644 index 7f52b2556f..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/src/Resources/Strings.resx +++ /dev/null @@ -1,1953 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Invalid index {0} for this {1} with Count={2}. - - - A {0} with {1} '{2}' is not contained by this {3}. - - - The {0} only accepts non-null {1} type objects, not {2} objects. - - - The {0} is already contained by another {1}. - - - The {0} only accepts non-null {1} type objects. - - - Attempted to remove an {0} that is not contained by this {1}. - - - The connection was not closed. {0} - - - The connection's current state is closed. - - - The connection's current state is connecting. - - - The connection's current state is open. - - - The connection's current state is executing. - - - The connection's current state is fetching. - - - The connection's current state: {0}. - - - Format of the initialization string does not conform to specification starting at index {0}. - - - Invalid attempt to call {0} when reader is closed. - - - Internal DbConnection Error: {0} - - - The DataDirectory substitute is not a string. - - - The {0} enumeration value, {1}, is invalid. - - - The {0} enumeration value, {1}, is not supported by the {2} method. - - - Invalid parameter Offset value '{0}'. The value must be greater than or equal to 0. - - - Connection currently has transaction enlisted. Finish current transaction and retry. - - - Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry. - - - The ConnectionString property has not been initialized. - - - Not allowed to change the '{0}' property. {1} - - - Can not start another operation while there is an asynchronous operation pending. - - - Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. - - - Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded. This may have occurred because of too many simultaneous non-pooled connection attempts. - - - The only acceptable value for the property '{0}' is '{1}'. - - - The acceptable values for the property '{0}' are '{1}' or '{2}'. - - - Specified QuotePrefix and QuoteSuffix values do not match. - - - Destination array is not long enough to copy all the items in the collection. Check array index and length. - - - Only single dimensional arrays are supported for the requested action. - - - Cannot remove the specified item because it was not found in the specified Collection. - - - Non-negative number required. - - - Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. - - - Cannot convert object of type '{0}' to object of type '{1}'. - - - Expecting argument of type {1}, but received type {0}. - - - {0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType. {1}. - - - The stored procedure '{0}' doesn't exist. - - - Invalid value for key '{0}'. - - - Use of key '{0}' requires the key '{1}' to be present. - - - The value's length for key '{0}' exceeds its limit of '{1}'. - - - Keyword not supported: '{0}'. - - - Internal .NET Framework Data Provider error {0}. - - - {0} '{1}'. - - - {0} '{1}', incorrect usage of quotes. - - - {0} '{1}', the current limit of '{2}' is insufficient. - - - SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name - - - Batching updates is not supported on the context connection. - - - SqlBulkCopy.WriteToServer failed because the SqlBulkCopy.DestinationTableName is an invalid multipart name - - - Processing of results from SQL Server failed because of an invalid multipart name - - - SqlParameter.TypeName is an invalid multipart name - - - Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported. - - - The {0} enumeration value, {1}, is not supported by the .NET Framework SqlClient Data Provider. - - - {0}: CommandText property has not been initialized - - - {0}: Connection property has not been initialized. - - - {0} requires an open and available Connection. {1} - - - The transaction is either not associated with the current connection or has been completed. - - - {0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized. - - - There is already an open DataReader associated with this {0} which must be closed first. - - - The method '{0}' cannot be called more than once for the same execution. - - - Invalid CommandTimeout value {0}; the value must be >= 0. - - - {1}[{0}]: the Size property has an invalid size of 0. - - - {0}.Prepare method requires all parameters to have an explicitly set type. - - - {0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size. - - - {0}.Prepare method requires parameters of type '{1}' have an explicitly set Precision and Scale. - - - Mismatched end method call for asyncResult. Expected call to {0} but {1} was called instead. - - - Invalid operation. The connection is closed. - - - The connection has been disabled. - - - Database cannot be null, the empty string, or string of only whitespace. - - - Invalid source buffer (size of {0}) offset: {1} - - - Invalid destination buffer (size of {0}) offset: {1} - - - Invalid attempt to {0} when stream is closed. - - - Specified SeekOrigin value is invalid. - - - Invalid attempt to read from column ordinal '{0}'. With CommandBehavior.SequentialAccess, you may only read from column ordinal '{1}' or greater. - - - The parameter data type of {0} is invalid. - - - No mapping exists from object type {0} to a known managed provider native type. - - - Unable to handle an unknown TypeCode {0} returned by Type {1}. - - - No mapping exists from DbType {0} to a known {1}. - - - The version of SQL Server in use does not support datatype '{0}'. - - - Parameter value '{0}' is out of range. - - - Specified parameter name '{0}' is not valid. - - - Invalid parameter Size value '{0}'. The value must be greater than or equal to 0. - - - Invalid value for argument '{0}'. The value must be greater than or equal to 0. - - - Invalid value for this metadata. - - - Failed to convert parameter value from a {0} to a {1}. - - - {0} does not support parallel transactions. - - - This {0} has completed; it is no longer usable. - - - Specified length '{0}' is out of range. - - - Invalid {2} attempt at dataIndex '{0}'. With CommandBehavior.SequentialAccess, you may only read from dataIndex '{1}' or greater. - - - Invalid min or max pool size values, min pool size cannot be greater than the max pool size. - - - Invalid 'Packet Size'. The value must be an integer >= 512 and <= 32768. - - - Invalid transaction or invalid name for a point at which to save within the transaction. - - - User Instance and Failover are not compatible options. Please choose only one of the two in the connection string. - - - Cannot use 'Authentication' with 'Integrated Security'. - - - Cannot use 'Authentication=Active Directory Integrated' with 'Password' or 'PWD' connection string keywords. - - - Cannot use 'Authentication=Active Directory Interactive' with 'Password' or 'PWD' connection string keywords. - - - Cannot use 'Authentication=Active Directory Device Code Flow' with 'User ID', 'UID', 'Password' or 'PWD' connection string keywords. - - - Cannot use 'Authentication={0}' with 'Password' or 'PWD' connection string keywords. - - - The instance of SQL Server you attempted to connect to requires encryption but this machine does not support it. - - - The instance of SQL Server you attempted to connect to does not support encryption. - - - Unsupported SQL Server version. The .NET Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later. - - - Cannot create normalizer for '{0}'. - - - {0} cannot be changed while async operation is in progress. - - - Instance failure. - - - Server {0}, database {1} is not configured for database mirroring. - - - The connection does not support MultipleActiveResultSets. - - - SSE Instance re-direction is not supported for non-local user instances. - - - The authentication '{0}' is not supported. - - - SQL authentication method '{0}' is not supported. - - - Failed to instantiate an authentication provider with type '{1}' for '{0}'. - - - Failed to instantiate a SqlAuthenticationInitializer with type '{0}'. - - - The provider '{0}' threw an exception while initializing. - - - The provider '{0}' does not support authentication '{1}'. - - - Cannot find an authentication provider for '{0}'. - - - Failed to read the config section for authentication providers. - - - Parameter '{0}' cannot be null or empty. - - - The command execution cannot proceed due to a pending asynchronous operation already in progress. - - - Invalid command sent to ExecuteXmlReader. The command must return an Xml result. - - - Invalid 3 part name format for TypeName. - - - The length of the parameter '{0}' exceeds the limit of 128 characters. - - - Precision value '{0}' is either less than 0 or greater than the maximum allowed precision of 38. - - - Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 38. - - - Scale value '{0}' is either less than 0 or greater than the maximum allowed scale of 7. - - - Parameter '{0}' exceeds the size limit for the sql_variant datatype. - - - The {0} type parameter '{1}' must have a valid type name. - - - Invalid internal packet size: - - - The SQL Server instance returned an invalid or unsupported protocol version during login negotiation. - - - Invalid Packet Size. - - - Internal connection fatal error. - - - The connection cannot be used because there is an ongoing operation that must be finished. - - - Memory allocation for internal connection failed. - - - SqlDbType.SmallDateTime overflow. Value '{0}' is out of range. Must be between 1/1/1900 12:00:00 AM and 6/6/2079 11:59:59 PM. - - - SqlDbType.Time overflow. Value '{0}' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999. - - - SqlDbType.SmallMoney overflow. Value '{0}' is out of range. Must be between -214,748.3648 and 214,748.3647. - - - The Collation specified by SQL Server is not supported. - - - Operation cancelled by user. - - - A severe error occurred on the current command. The results, if any, should be discarded. - - - Failed to generate SSPI context. - - - Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication. - - - Invalid SSPI packet size. - - - Cannot initialize SSPI package. - - - Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. - - - Connection Timeout Expired. The timeout period elapsed at the start of the pre-login phase. This could be because of insufficient time provided for connection timeout. - - - Connection Timeout Expired. The timeout period elapsed while attempting to create and initialize a socket to the server. This could be either because the server was unreachable or unable to respond back in time. - - - Connection Timeout Expired. The timeout period elapsed while making a pre-login handshake request. This could be because the server was unable to respond back in time. - - - Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. - - - Connection Timeout Expired. The timeout period elapsed at the start of the login phase. This could be because of insufficient time provided for connection timeout. - - - Connection Timeout Expired. The timeout period elapsed while attempting to authenticate the login. This could be because the server failed to authenticate the user or the server was unable to respond back in time. - - - Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. - - - This failure occurred while attempting to connect to the {0} server. - - - This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; - - - The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; - - - The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; - - - The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; - - - The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; - - - The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; - - - A user instance was requested in the connection string but the server specified does not support this option. - - - Invalid attempt to read when no data is present. - - - Invalid attempt to GetBytes on column '{0}'. The GetBytes function can only be used on columns of type Text, NText, or Image. - - - Invalid attempt to GetChars on column '{0}'. The GetChars function can only be used on columns of type Text, NText, Xml, VarChar or NVarChar. - - - Invalid attempt to GetStream on column '{0}'. The GetStream function can only be used on columns of type Binary, Image, Udt or VarBinary. - - - Invalid attempt to GetTextReader on column '{0}'. The GetTextReader function can only be used on columns of type Char, NChar, NText, NVarChar, Text or VarChar. - - - Invalid attempt to GetXmlReader on column '{0}'. The GetXmlReader function can only be used on columns of type Xml. - - - Failure while attempting to promote transaction. - - - Buffer offset '{1}' plus the bytes available '{0}' is greater than the length of the passed in buffer. - - - Data length '{0}' is less than 0. - - - The mapped collection is in use and cannot be accessed at this time; - - - Mappings must be either all name or all ordinal based. - - - The given value{0} of type {1} from the data source cannot be converted to type {2} for Column {3} [{4}] Row {5}. - - - The given ColumnMapping does not match up with any column in the source or destination. - - - The given ColumnName '{0}' does not match up with any column in data source. - - - String or binary data would be truncated in table '{0}', column '{1}'. Truncated value: '{2}'. - - - Timeout Value '{0}' is less than 0. - - - Value cannot be converted to SqlVariant. - - - Unexpected existing transaction. - - - Failed to obtain column collation information for the destination table. If the table is not in the current database the name must be qualified using the database name (e.g. [mydb]..[mytable](e.g. [mydb]..[mytable]); this also applies to temporary-tables (e.g. #mytable would be specified as tempdb..#mytable). - - - Must not specify SqlBulkCopyOption.UseInternalTransaction and pass an external Transaction at the same time. - - - Function must not be called during event. - - - The DestinationTableName property must be set before calling this method. - - - Cannot access destination table '{0}'. - - - Column '{0}' does not allow DBNull.Value. - - - The locale id '{0}' of the source column '{1}' and the locale id '{2}' of the destination column '{3}' do not match. - - - Attempt to invoke bulk copy on an object that has a pending operation. - - - Unable to get the address of the distributed transaction coordinator for the server, from the server. Is DTC enabled on the server? - - - The requested operation cannot be completed because the connection has been broken. - - - Open result count exceeded. - - - The Stream does not support writing. - - - The Stream does not support reading. - - - The Stream does not support seeking. - - - ClientConnectionId:{0} - - - Error Number:{0},State:{1},Class:{2} - - - ClientConnectionId before routing:{0} - - - Routing Destination:{0} - - - The currently loaded System.Transactions.dll does not support Global Transactions. - - - Null - - - Message - - - Arithmetic Overflow. - - - Divide by zero error encountered. - - - Data is Null. This method or property cannot be called on Null values. - - - Numeric arithmetic causes truncation. - - - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. - - - Two strings to be concatenated have different collation. - - - Two strings to be compared have different collation. - - - Invalid flag value. - - - Conversion from SqlDecimal to Decimal overflows. - - - Conversion overflows. - - - Invalid SqlDateTime. - - - A time zone was specified. SqlDateTime does not support time zones. - - - Invalid array size. - - - Invalid numeric precision/scale. - - - The input wasn't in a correct format. - - - An error occurred while reading. - - - Data returned is larger than 2Gb in size. Use SequentialAccess command behavior in order to get all of the data. - - - SQL Type has not been loaded with data. - - - SQL Type has already been loaded with data. - - - Invalid attempt to access a closed XmlReader. - - - Invalid attempt to call {0} when the stream is closed. - - - Invalid attempt to call {0} when the stream non-writable. - - - Invalid attempt to call {0} when the stream non-readable. - - - Invalid attempt to call {0} when the stream is non-seekable. - - - Subclass did not override a required method. - - - no UDT attribute - - - Specified type is not registered on the target server. {0}. - - - Internal Error - - - Operation aborted. - - - Operation aborted due to an exception (see InnerException for details). - - - The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements. - - - ParameterDirection '{0}' specified for parameter '{1}' is not supported. Table-valued parameters only support ParameterDirection.Input. - - - DBNull value for parameter '{0}' is not supported. Table-valued parameters cannot be DBNull. - - - TypeName specified for parameter '{0}'. TypeName must only be set for Structured parameters. - - - DateType column for field '{0}' in schema table is null. DataType must be non-null. - - - Invalid column ordinals in schema table. ColumnOrdinals, if present, must not have duplicates or gaps. - - - Metadata for field '{0}' of record '{1}' did not match the original record's metadata. - - - Number of fields in record '{0}' does not match the number in the original record. - - - Global Transactions are not enabled for this Azure SQL Database. Please contact Azure SQL Database support for assistance. - - - Unrecognized System.Transactions.IsolationLevel enumeration value: {0}. - - - This SqlCommand object is already associated with another SqlDependency object. - - - The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications. - - - When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance. - - - When using SqlDependency without providing an options value, SqlDependency.Start() must be called for each server that is being executed against. - - - SqlDependency.Start has been called for the server the command is executing against more than once, but there is no matching server/user/database Start() call for current command. - - - SqlDependency.OnChange does not support multiple event registrations for the same delegate. - - - No SqlDependency exists for the key. - - - Timeout specified is invalid. Timeout cannot be < 0. - - - SqlDependency does not support calling Start() with different connection strings having the same server, user, and database in the same app domain. - - - The dbType {0} is invalid for this constructor. - - - The name is too long. - - - The sort order and ordinal must either both be specified, or neither should be specified (SortOrder.Unspecified and -1). The values given were: order = {0}, ordinal = {1}. - - - The type of column '{0}' is not supported. The type is '{1}' - - - There are not enough fields in the Structured type. Structured types must have at least one field. - - - The sort ordinal {0} was specified twice. - - - The sort ordinal {0} was not specified. - - - The sort ordinal {0} on field {1} exceeds the total number of fields. - - - range: 0-8000 - - - unexpected error encountered in SqlClient data provider. {0} - - - UdtTypeName property must be set only for UDT parameters. - - - UdtTypeName property must be set for UDT parameters. - - - '{0}' is an invalid user defined type, reason: {1}. - - - SqlParameter.UdtTypeName is an invalid multipart name - - - Invalid 3 part name format for UdtTypeName. - - - There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference for the value instead. - - - I/O Error detected in read/write operation - - - Connection was terminated - - - Asynchronous operations not supported - - - Invalid parameter(s) found - - - Unsupported protocol specified - - - Invalid connection found when setting up new session protocol - - - Protocol not supported - - - Associating port with I/O completion mechanism failed - - - Timeout error - - - No server name supplied - - - TerminateListener() has been called - - - Win9x not supported - - - Function not supported - - - Shared-Memory heap error - - - Cannot find an ip/ipv6 type address to connect - - - Connection has been closed by peer - - - Physical connection is not usable - - - Connection has been closed - - - Encryption is enforced but there is no valid certificate - - - Couldn't load library - - - Cannot open a new thread in server process - - - Cannot post event to completion port - - - Connection string is not valid - - - Error Locating Server/Instance Specified - - - Error getting enabled protocols list from registry - - - Server doesn't support requested protocol - - - Shared Memory is not supported for clustered server connectivity - - - Invalid attempt bind to shared memory segment - - - Encryption(ssl/tls) handshake failed - - - Packet size too large for SSL Encrypt/Decrypt operations - - - SSRP error - - - Could not connect to the Shared Memory pipe - - - An internal exception was caught - - - The Shared Memory dll used to connect to SQL Server 2000 was not found - - - The SQL Server 2000 Shared Memory client dll appears to be invalid/corrupted - - - Cannot open a Shared Memory connection to SQL Server 2000 - - - Shared memory connectivity to SQL Server 2000 is either disabled or not available on this machine - - - Could not open a connection to SQL Server - - - Cannot open a Shared Memory connection to a remote SQL server - - - Could not establish dedicated administrator connection (DAC) on default port. Make sure that DAC is enabled - - - An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number - - - Could not compose Service Principal Name (SPN) for Windows Integrated Authentication. Possible causes are server(s) incorrectly specified to connection API calls, Domain Name System (DNS) lookup failure or memory shortage - - - Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported. - - - Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported. - - - Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol. - - - Local Database Runtime error occurred. - - - An instance name was not specified while connecting to a Local Database Runtime. Specify an instance name in the format (localdb)\instance_name. - - - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled. - - - Invalid Local Database Runtime registry configuration found. Verify that SQL Server Express is properly installed. - - - Unable to locate the registry entry for SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed. - - - Registry value contains an invalid SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed. - - - Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed. - - - Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed. - - - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. - - - The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. - - - A connection was successfully established with the server, but then an error occurred during the pre-login handshake. - - - A connection was successfully established with the server, but then an error occurred when obtaining the security/SSPI context information for integrated security login. - - - A connection was successfully established with the server, but then an error occurred during the login process. - - - Connection open and login was successful, but then an error occurred while enabling MARS for this connection. - - - Connection open and login was successful, but then an error occurred while enlisting the connection into the current distributed transaction. - - - Failed to establish a MARS session in preparation to send the request to the server. - - - A transport-level error has occurred when sending the request to the server. - - - A transport-level error has occurred when receiving results from the server. - - - A transport-level error has occurred during connection clean-up. - - - A transport-level error has occurred while sending information to the server. - - - A transport-level error has occurred during SSPI handshake. - - - Local Database Runtime: Cannot load SQLUserInstance.dll. - - - Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed. - - - Cannot obtain Local Database Runtime error message - - - Two or more redirections have occurred. Only one redirection per login is allowed. - - - Connecting to a mirrored SQL Server instance using the ApplicationIntent ReadOnly connection option is not supported. - - - Unexpected routing information received. - - - Invalid routing information received. - - - Server provided routing information, but timeout already expired. - - - Invalid ConnectRetryCount value (should be 0-255). - - - Invalid ConnectRetryInterval value (should be 1-60). - - - Next reconnection attempt will exceed query timeout. Reconnection was terminated. - - - The server did not preserve SSL encryption during a recovery attempt, connection recovery is not possible. - - - The server did not preserve the exact client TDS version requested during a recovery attempt, connection recovery is not possible. - - - The connection is broken and recovery is not possible. The client driver attempted to recover the connection one or more times and all attempts failed. Increase the value of ConnectRetryCount to increase the number of recovery attempts. - - - The connection is broken and recovery is not possible. The connection is marked by the server as unrecoverable. No attempt was made to restore the connection. - - - The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection. - - - The server did not acknowledge a recovery attempt, connection recovery is not possible. - - - The keyword '{0}' is not supported on this platform. - - - The server is attempting to use a feature that is not supported on this platform. - - - Received an unsupported token '{0}' while reading data from the server. - - - Type {0} is not supported on this platform. - - - The keyword 'Network Library' is not supported on this platform, prefix the 'Data Source' with the protocol desired instead ('tcp:' for a TCP connection, or 'np:' for a Named Pipe connection). - - - HTTP Provider - - - Named Pipes Provider - - - Session Provider - - - Sign Provider - - - Shared Memory Provider - - - SMux Provider - - - SSL Provider - - - TCP Provider - - - - - - SQL Network Interfaces - - - .database.windows.net - - - .database.cloudapi.de - - - .database.usgovcloudapi.net - - - .database.chinacloudapi.cn - - - No support for channel binding on operating systems other than Windows. - - - GSSAPI operation failed with error - {0} ({1}). - - - GSSAPI operation failed with status: {0} (Minor status: {1}). - - - NTLM authentication is not possible with default credentials on this platform. - - - Target name should be non empty if default credentials are passed. - - - Server implementation is not supported - - - Requested protection level is not supported with the GSSAPI implementation currently installed. - - - Insufficient buffer space. Required: {0} Actual: {1}. - - - Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level. - - - The requested security package is not supported. - - - {0} failed with error {1}. - - - This method is not implemented by this class. - - - {0} returned {1}. - - - The specified value is not valid in the '{0}' enumeration. - - - '{0}' is not a supported handle type. - - - LocalDB is not supported on this platform. - - - Precision '{0}' required to send all values in column '{1}' exceeds the maximum supported precision '{2}'. The values must all fit in a single precision. - - - The size of column '{0}' is not supported. The size is {1}. - - - The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string. - - - There are multiple collections named '{0}'. - - - The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column. - - - The metadata XML is invalid. - - - The schema table contains no columns. - - - Unable to build the '{0}' collection because execution of the SQL query failed. See the inner exception for details. - - - More restrictions were provided than the requested schema ('{0}') supports. - - - The collection '{0}' is missing from the metadata XML. - - - The requested collection ({0}) is not defined. - - - The requested collection ({0}) is not supported by this version of the provider. - - - One or more of the required columns of the restrictions collection is missing. - - - A restriction exists for which there is no matching row in the restrictions collection. - - - The DataSourceInformation table must contain exactly one row. - - - One of the required DataSourceInformation tables columns is missing. - - - The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly. - - - Unable to build schema collection '{0}'; - - - The length of argument '{0}' exceeds its limit of '{1}'. - - - {0} must be marked as read only. - - - Cannot use Credential with UserID, UID, Password, or PWD connection string keywords. - - - Cannot use Credential with Integrated Security connection string keyword. - - - Either Credential or both 'User ID' and 'Password' (or 'UID' and 'PWD') connection string keywords must be specified, if 'Authentication={0}'. - - - The '{0}' argument must not be null or empty. - - - ChangePassword can only be used with SQL authentication, not with integrated security. - - - ChangePassword requires SQL Server 9.0 or later. - - - The keyword '{0}' must not be specified in the connectionString argument to ChangePassword. - - - Failed to authenticate the user {0} in Active Directory (Authentication={1}). - - - Error code 0x{0} - - - Internal connection fatal error. Error state: {0}. - - - Internal connection fatal error. Error state: {0}, Value: {1}. - - - Internal connection fatal error. Error state: {0}, Offset: {1} - - - Internal connection fatal error. Error state: {0}, Token : {1} - - - Internal connection fatal error. Error state: {0}, Length: {1} - - - Internal connection fatal error. Error state: {0}, Status: {1} - - - Cannot set the AccessToken property if the 'Integrated Security' connection string keyword has been set to 'true' or 'SSPI'. - - - Cannot set the AccessToken property if 'UserID', 'UID', 'Password', or 'PWD' has been specified in connection string. - - - Cannot set the Credential property if the AccessToken property is already set. - - - Cannot set the AccessToken property if 'Authentication' has been specified in the connection string. - - - Internal connection fatal error. Error state: {0}, Feature Id: {1}. - - - Internal connection fatal error. Error state: {0}, Authentication Library Type: {1}. - - - The path name is not valid. - - - The path name is invalid or does not point to a disk file. - - - The process cannot access the file specified because it has been opened in another transaction. - - - An invalid parameter was passed to the function. - - - SqlFileStream is not supported on this platform. - - - Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. - - - Certificate with thumbprint '{0}' not found in certificate store '{1}' in certificate location '{2}'. - - - Certificate with thumbprint '{0}' not found in certificate store '{1}' in certificate location '{2}'. Verify the certificate path in the column master key definition in the database is correct, and the certificate has been imported correctly into the certificate location/store. - - - Certificate specified in key path '{0}' does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly. - - - Certificate specified in key path '{0}' does not have a private key to decrypt a column encryption key. Verify the certificate is imported correctly. - - - Internal error. The signature returned by SQL Server for enclave-enabled column master key, specified at key path '{0}', cannot be null or empty. - - - The signature returned by SQL Server for the column master key, specified in key path '{0}', is invalid (does not match the computed signature). Recreate column master key metadata, making sure the signature inside the metadata is computed using the column master key being referenced in the metadata. If the error persists, please contact Microsoft for assistance. - - - Decryption failed. The last 10 bytes of the encrypted column encryption key are: '{0}'. The first 10 bytes of ciphertext are: '{1}'. - - - Internal Error. Argument '{0}' cannot be empty when executing method '{1}.{2}'. - - - Empty certificate thumbprint specified in certificate path '{0}'. - - - Internal error. Empty certificate thumbprint specified in certificate path '{0}'. - - - Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Internal error. Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Internal error. Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Empty column encryption key specified. - - - Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Internal error. Empty key identifier specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Internal error. Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Internal error. Empty encrypted column encryption key specified. - - - The specified ciphertext's encryption algorithm version '{0}' does not match the expected encryption algorithm version '{1}'. - - - Specified encrypted column encryption key contains an invalid encryption algorithm version '{0}'. Expected version is '{1}'. - - - Specified ciphertext has an invalid authentication tag. - - - Invalid certificate location '{0}' in certificate path '{1}'. Use the following format: <certificate location>{4}<certificate store>{4}<certificate thumbprint>, where <certificate location> is either '{2}' or '{3}'. - - - Internal error. Invalid certificate location '{0}' in certificate path '{1}'. Use the following format: <certificate location>{4}<certificate store>{4}<certificate thumbprint>, where <certificate location> is either '{2}' or '{3}'. - - - Invalid certificate path: '{0}'. Use the following format: <certificate location>{3}<certificate store>{3}<certificate thumbprint>, where <certificate location> is either '{1}' or '{2}'. - - - Internal error. Invalid certificate path: '{0}'. Use the following format: <certificate location>{3}<certificate store>{3}<certificate thumbprint>, where <certificate location> is either '{1}' or '{2}'. - - - The specified encrypted column encryption key signature does not match the signature computed with the column master key (certificate) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect. - - - Invalid certificate store '{0}' specified in certificate path '{1}'. Expected value: '{2}'. - - - Internal error. Invalid certificate store '{0}' specified in certificate path '{1}'. Expected value: '{2}'. - - - The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect. - - - The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect. - - - The specified encrypted column encryption key's ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptographic Service provider (CSP) path may be incorrect. - - - Specified ciphertext has an invalid size of {0} bytes, which is below the minimum {1} bytes required for decryption. - - - An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: '{0}'. Verify that the CNG provider name '{1}' is valid, installed on the machine, and the key '{2}' exists. - - - Internal error. An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: '{0}'. Verify that the CNG provider name '{1}' is valid, installed on the machine, and the key '{2}' exists. - - - Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Internal error. Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{1}<Key Identifier>. - - - Invalid key identifier: '{0}'. Verify that the key identifier in column master key path: '{1}' is valid and exists in the CSP. - - - Internal error. Invalid key identifier: '{0}'. Verify that the key identifier in column master key path: '{1}' is valid and exists in the CSP. - - - Invalid Microsoft cryptographic service provider (CSP) name: '{0}'. Verify that the CSP provider name in column master key path: '{1}' is valid and installed on the machine. - - - Internal error. Invalid Microsoft cryptographic service provider (CSP) name: '{0}'. Verify that the CSP provider name in column master key path: '{1}' is valid and installed on the machine. - - - Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Internal error. Invalid column master key path: '{0}'. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{1}<Key Identifier>. - - - Encryption type '{1}' specified for the column in the database is either invalid or corrupted. Valid encryption types for algorithm '{0}' are: {2}. - - - Invalid key encryption algorithm specified: '{0}'. Expected value: '{1}'. - - - Internal error. Invalid key encryption algorithm specified: '{0}'. Expected value: '{1}'. - - - The column encryption key has been successfully decrypted but its length: {1} does not match the length: {2} for algorithm '{0}'. Verify the encrypted value of the column encryption key in the database. - - - Invalid key store provider name: '{0}'. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly. - - - The specified encrypted column encryption key signature does not match the signature computed with the column master key (asymmetric key) in '{0}'. The encrypted column encryption key may be corrupt, or the specified path may be incorrect. - - - The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (certificate) in '{2}'. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect. - - - The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect. - - - The specified encrypted column encryption key's signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in '{2}'. The encrypted column encryption key may be corrupt, or the specified Microsoft cryptographic service provider (CSP) path may be incorrect. - - - Failed to decrypt a column encryption key using key store provider: '{0}'. Verify the properties of the column encryption key and its column master key in your database. The last 10 bytes of the encrypted column encryption key are: '{1}'. - - - Failed to decrypt a column encryption key using key store provider: '{0}'. The last 10 bytes of the encrypted column encryption key are: '{1}'. - - - Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes. - - - Internal error. Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes. - - - Internal Error. Argument '{0}' cannot be null when executing method '{1}.{2}'. - - - Certificate path cannot be null. Use the following format: <certificate location>{2}<certificate store>{2}<certificate thumbprint>, where <certificate location> is either '{0}' or '{1}'. - - - Internal error. Certificate path cannot be null. Use the following format: <certificate location>{2}<certificate store>{2}<certificate thumbprint>, where <certificate location> is either '{0}' or '{1}'. - - - Internal error. Ciphertext value cannot be null. - - - Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{0}<Key Identifier>. - - - Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: <CNG Provider Name>{0}<Key Identifier>. - - - Internal error. Encryption algorithm cannot be null. Valid algorithms are: {0}. - - - Column encryption key cannot be null. - - - Internal error. Column encryption key cannot be null. - - - Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{0}<Key Identifier>. - - - Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): <CSP Provider Name>{0}<Key Identifier>. - - - Internal error. Encrypted column encryption key cannot be null. - - - Key encryption algorithm cannot be null. - - - Internal error. Key encryption algorithm cannot be null. - - - Internal error. Plaintext value cannot be null. - - - Unable to verify a column master key signature. Error message: {0} - - - Encryption algorithm '{0}' for the column in the database is either invalid or corrupted. Valid algorithms are: {1}. - - - Encryption algorithm id '{0}' for the column in the database is either invalid or corrupted. Valid encryption algorithm ids are: {1}. - - - Failed to decrypt a column encryption key. Invalid key store provider name: '{0}'. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly. - - - Column master key path '{0}' received from server '{1}' is not a trusted key path. - - - Attestation information was not returned by SQL Server. Enclave type is '{0}' and enclave attestation URL is '{1}'. - - - Failed to instantiate an enclave provider with type '{1}' for name '{0}'. Error message: {2} - - - Failed to read the configuration section for enclave providers. Make sure the section is correctly formatted in your application configuration file. Error Message: {0} - - - Key store providers cannot be set more than once. - - - Internal Error. Encrypted column encryption keys not found when trying to send the keys to the enclave. - - - Internal Error. Empty argument '{0}' specified when constructing an object of type '{1}'. '{0}' cannot be empty. - - - Invalid key store provider name specified. Key store provider names cannot be null or empty. - - - You have specified the enclave attestation URL and attestation protocol in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. - - - You have specified the enclave attestation URL in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. - - - You have specified the attestation protocol in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. - - - No enclave provider found for enclave type '{0}' and attestation protocol '{1}'. Please specify the correct attestation protocol in the connection string. - - - Executing a query requires enclave computations, but the application configuration is missing the enclave provider section. - - - You have specified the enclave attestation URL in the connection string, but the SQL Server did not return an enclave type. Please make sure the enclave type is correctly configured in your instance - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. - - - Internal Error. Enclave type received from SQL Server is null or empty when executing a query requiring enclave computations. - - - Error encountered while generating package to be sent to enclave. Error message: {0} - - - Internal Error. Failed to encrypt byte package to be sent to the enclave. Error Message: {0} - - - Internal Error. The buffer specified by argument '{0}' for method '{1}.{2}' has insufficient space. - - - Invalid attestation parameters specified by the enclave provider for enclave type '{0}'. Error occurred when converting the value '{1}' of parameter '{2}' to unsigned int. Error Message: {3} - - - Invalid key store provider name '{0}'. '{1}' prefix is reserved for system key store providers. - - - Internal Error. The given database id '{0}' is not valid. Error occurred when converting the database id to unsigned int. Error Message: {1} - - - Internal Error. The given key id '{0}' is not valid. Error occurred when converting the key id to unsigned short. Error Message: {1} - - - Error occurred when generating enclave package. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is '{0}'. - - - Error occurred when reading '{0}' resultset. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is '{1}'. - - - {0} instance in use does not support column encryption. - - - Internal Error. Null argument '{0}' specified when constructing an object of type '{1}'. '{0}' cannot be null. - - - Column encryption key store provider dictionary cannot be null. Expecting a non-null value. - - - Internal Error. Enclave package is null during execution of an enclave based query. Enclave type is '{0}' and enclaveAttestationUrl is '{1}'. - - - Internal Error. Enclave session is null during query execution. Enclave type is '{0}' and enclaveAttestationUrl is '{1}'. - - - Unable to communicate with the enclave. Null enclave session information received from the enclave provider. Enclave type is '{0}' and enclave attestation URL is '{1}'. - - - Null reference specified for key store provider '{0}'. Expecting a non-null value. - - - Internal Error. Failed to serialize keys to be sent to the enclave. The start offset specified by argument '{0}' for method {1}.{2} is out of bounds. - - - Internal Error. SqlColumnEncryptionEnclaveProviderName cannot be null or empty. - - - Encryption and decryption of data type '{0}' is not supported. - - - Normalization version '{0}' received from {2} is not supported. Valid normalization versions are: {1}. - - - {0} should be identical on all commands ({1}, {2}, {3}, {4}) when doing batch updates. - - - Retrieving encrypted column '{0}' with {1} is not supported. - - - Retrieving encrypted column '{0}' as a {1} is not supported. - - - Failed to decrypt column '{0}'. - - - Failed to encrypt parameter '{0}'. - - - Cannot set {0} for {3} '{1}' because encryption is not enabled for the statement or procedure '{2}'. - - - Cannot execute statement or procedure '{1}' because {2} was set for {3} '{0}' and the database expects this parameter to be sent as plaintext. This may be due to a configuration error. - - - Internal error. Error occurred when populating enclave metadata. The referenced column encryption key ordinal '{0}' is missing in the encryption metadata returned by SQL Server. Max ordinal is '{1}'. - - - Internal error. Error occurred when populating parameter metadata. The referenced column encryption key ordinal '{0}' is missing in the encryption metadata returned by SQL Server. Max ordinal is '{1}'. - - - Internal error. Error occurred when parsing the results of '{0}'. The attestation information resultset is expected to contain only one row, but it contains multiple rows. - - - Failed to decrypt parameter '{0}'. - - - Internal error. Metadata for parameter '{1}' in statement or procedure '{2}' is missing in resultset returned by {0}. - - - Internal error. Metadata for parameters for command '{1}' in a batch is missing in the resultset returned by {0}. - - - Internal error. The result returned by '{0}' is invalid. The attestation information resultset is missing for enclave type '{1}'. - - - Internal error. The result returned by '{0}' is invalid. The parameter metadata resultset is missing. - - - Globalization Invariant Mode is not supported. - - - The validation of an attestation token failed. The token signature does not match the signature computed using a public key retrieved from the attestation public key endpoint at '{0}'. Verify the DNS mapping for the endpoint - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If correct, contact Customer Support Services. - - - Internal error occurred when retrying the download of the HGS root certificate after the initial request failed. Contact Customer Support Services. - - - Internal error. Unable to invalidate the requested enclave session, because it does not exist in the cache. Contact Customer Support Services. - - - The validation of an attestation token failed. The token received from SQL Server is expired. Contact Customer Support Services. - - - Failed to create enclave session as attestation server is busy. - - - The validation of an attestation information failed. The attestation information has an invalid format. Contact Customer Support Services. Error details: '{0}'. - - - The validation of an attestation token failed. The token has an invalid format. Contact Customer Support Services. Error details: '{0}'. - - - The attestation service returned an expired HGS root certificate for attestation URL '{0}'. Check the HGS root certificate configured for your HGS instance - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. - - - The obtained HGS root certificate for attestation URL '{0}' has an invalid format. Verify the attestation URL is correct and the HGS server is online and fully initialized - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. For more information contact Customer Support Services. Error details: '{1}'. - - - The validation of an attestation token failed. Cannot retrieve a public key from the attestation public key endpoint, or the retrieved key has an invalid format. Error details: '{0}'. - - - Signature verification of the enclave's Diffie-Hellman key failed. Contact Customer Support Services. - - - The validation of an attestation token failed due to an error while decoding the enclave public key obtained from SQL Server. Contact Customer Support Services. - - - The validation of an attestation token failed due to an error while computing a hash of the enclave public key obtained from SQL Server. Contact Customer Support Services. - - - The validation of the attestation token has failed during signature validation. Exception: '{0}'. - - - The validation of an attestation token failed. Claim '{0}' in the token has an invalid value of '{1}'. Verify the attestation policy - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If the policy is correct, contact Customer Support Services. - - - The validation of the attestation token failed. Claim '{0}' is missing in the token. Verify the attestation policy - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. If the policy is correct, contact Customer Support Services. - - - Failed to check if the enclave is running in the production mode. Contact Customer Support Services. - - - Could not verify enclave policy due to a difference between the expected and actual values of the policy on property '{0}'. Actual: '{1}', Expected: '{2}' - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. - - - Signature verification of the enclave report failed. The report signature does not match the signature computed using the HGS root certificate. Verify the DNS mapping for the endpoint - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. If correct, contact Customer Support Services. - - - The enclave report received from SQL Server is not in the correct format. Contact Customer Support Services. - - - Failed to build a chain of trust between the enclave host's health report and the HGS root certificate for attestation URL '{0}' with status: '{1}'. Verify the attestation URL matches the URL configured on the SQL Server - see https://go.microsoft.com/fwlink/?linkid=2160553 for more details. If both the client and SQL Server use the same attestation service, contact Customer Support Services. - - - Specifies an attestation protocol for its corresponding enclave attestation service. - - - Specifies an IP address preference when connecting to SQL instances. - - - The enclave type '{0}' returned from the server is not supported. - - - Failed to initialize connection. The attestation protocol '{0}' does not support the enclave type '{1}'. - - - Error occurred when generating enclave package. Attestation Protocol has not been specified in the connection string, but the query requires enclave computations. - - - UDT size must be less than {1}, size: {0} - - - The given value{0} of type {1} from the data source cannot be converted to type {2} for Column {3} [{4}]. - - - Security Warning: The negotiated {0} is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. - - - A column order hint cannot have an unspecified sort order. - - - The given column order hint is not valid. - - - The column '{0}' was specified more than once. - - - The sorted column '{0}' is not valid in the destination table. - - - Cannot set the Credential property if 'Authentication=Active Directory Integrated' has been specified in the connection string. - - - Cannot use 'Authentication=Active Directory Integrated', if the Credential property has been set. - - - Unsupported authentication specified in this context: {0} - - - Active Directory Interactive authentication timed out. The user took too long to respond to the authentication request. - - - Cannot set the Credential property if 'Authentication=Active Directory Interactive' has been specified in the connection string. - - - Cannot use 'Authentication=Active Directory Interactive', if the Credential property has been set. - - - Active Directory Device Code Flow authentication timed out. The user took too long to respond to the authentication request. - - - Cannot set the Credential property if 'Authentication=Active Directory Device Code Flow' has been specified in the connection string. - - - Cannot set the Credential property if 'Authentication={0}' has been specified in the connection string. - - - Cannot use 'Authentication=Active Directory Device Code Flow', if the Credential property has been set. - - - Cannot use 'Authentication={0}', if the Credential property has been set. - - - Value '{0}' is out of range. Must be between {1} and {2}. - - - The retry has been canceled at attempt {0}. - - - The number of retries has exceeded the maximum of {0} attempt(s). - - - Exception occurred while trying to set the AppContext Switch '{0}'={1}. - - - '{0}' is not less than '{1}'; '{2}' cannot be greater than '{3}'. - - - Parameter '{0}' cannot have Direction Output or InputOutput when EnableOptimizedParameterBinding is enabled on the parent command. - - - Connection timed out while retrieving an access token using '{0}' authentication method. Last error: {1}: {2} - - - Incorrect physicalConnection type. - - - Encrypt=Strict is not supported when targeting .NET Standard 2.0. Use .NET Standard 2.1, .NET Framework, or .NET. - - - Socket did not throw expected '{0}' with error code '{1}'. - - - Cannot set the AccessToken property if the AccessTokenCallback has been set. - - - Cannot set the AccessTokenCallback property if the 'Integrated Security' connection string keyword has been set to 'true' or 'SSPI'. - - - Cannot set the AccessTokenCallback property if 'Authentication=Active Directory Default' has been specified in the connection string. - - diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 675dd57fe6..3a8c854ca1 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -3,7 +3,7 @@ {407890AC-9876-4FEF-A6F1-F36A876BAADE} - SqlClient + Microsoft.Data.SqlClient v4.6.2 true Strings @@ -675,21 +675,25 @@ - + + Resources\StringsHelper.cs + + + Resources\Strings.Designer.cs True True Strings.resx - - Resources\StringsHelper.cs - - + + Resources\Strings.resx Microsoft.Data.SqlClient.Resources.Strings.resources System ResXFileCodeGenerator - $(ResxFileName).Designer.cs + Strings.Designer.cs + + + Resources\%(RecursiveDir)%(Filename)%(Extension) - Microsoft.Data.SqlClient.SqlMetaData.xml PreserveNewest diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs similarity index 98% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 5fd4a54382..90a7cbe0b3 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -38,7 +38,8 @@ internal class Strings { [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { - if (object.ReferenceEquals(resourceMan, null)) { + if (object.ReferenceEquals(resourceMan, null)) + { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Data.SqlClient.Resources.Strings", typeof(Strings).Assembly); resourceMan = temp; } @@ -6261,6 +6262,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to {0} returned {1}.. + /// + internal static string event_OperationReturnedSomething { + get { + return ResourceManager.GetString("event_OperationReturnedSomething", resourceCulture); + } + } + /// /// Looks up a localized string similar to The validation of an attestation token failed. The token received from SQL Server is expired. Contact Customer Support Services.. /// @@ -6981,6 +6991,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to LocalDB is not supported on this platform.. + /// + internal static string LocalDBNotSupported { + get { + return ResourceManager.GetString("LocalDBNotSupported", resourceCulture); + } + } + /// /// Looks up a localized string similar to The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.. /// @@ -7170,6 +7189,42 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level.. + /// + internal static string net_auth_message_not_encrypted { + get { + return ResourceManager.GetString("net_auth_message_not_encrypted", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insufficient buffer space. Required: {0} Actual: {1}.. + /// + internal static string net_context_buffer_too_small { + get { + return ResourceManager.GetString("net_context_buffer_too_small", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GSSAPI operation failed with status: {0} (Minor status: {1}).. + /// + internal static string net_gssapi_operation_failed { + get { + return ResourceManager.GetString("net_gssapi_operation_failed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to GSSAPI operation failed with error - {0} ({1}).. + /// + internal static string net_gssapi_operation_failed_detailed { + get { + return ResourceManager.GetString("net_gssapi_operation_failed_detailed", resourceCulture); + } + } + /// /// Looks up a localized string similar to The specified value is not valid in the '{0}' enumeration.. /// @@ -7179,6 +7234,78 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to {0} failed with error {1}.. + /// + internal static string net_log_operation_failed_with_error { + get { + return ResourceManager.GetString("net_log_operation_failed_with_error", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This method is not implemented by this class.. + /// + internal static string net_MethodNotImplementedException { + get { + return ResourceManager.GetString("net_MethodNotImplementedException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No support for channel binding on operating systems other than Windows.. + /// + internal static string net_nego_channel_binding_not_supported { + get { + return ResourceManager.GetString("net_nego_channel_binding_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Target name should be non empty if default credentials are passed.. + /// + internal static string net_nego_not_supported_empty_target_with_defaultcreds { + get { + return ResourceManager.GetString("net_nego_not_supported_empty_target_with_defaultcreds", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Requested protection level is not supported with the GSSAPI implementation currently installed.. + /// + internal static string net_nego_protection_level_not_supported { + get { + return ResourceManager.GetString("net_nego_protection_level_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Server implementation is not supported.. + /// + internal static string net_nego_server_not_supported { + get { + return ResourceManager.GetString("net_nego_server_not_supported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to NTLM authentication is not possible with default credentials on this platform.. + /// + internal static string net_ntlm_not_possible_default_cred { + get { + return ResourceManager.GetString("net_ntlm_not_possible_default_cred", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The requested security package is not supported.. + /// + internal static string net_securitypackagesupport { + get { + return ResourceManager.GetString("net_securitypackagesupport", resourceCulture); + } + } + /// /// Looks up a localized string similar to DateType column for field '{0}' in schema table is null. DataType must be non-null.. /// @@ -8703,6 +8830,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Incorrect physicalConnection type.. + /// + internal static string SNI_IncorrectPhysicalConnectionType { + get { + return ResourceManager.GetString("SNI_IncorrectPhysicalConnectionType", resourceCulture); + } + } + /// /// Looks up a localized string similar to The '{0}' platform is not supported when targeting .NET Framework.. /// @@ -9396,6 +9532,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Type {0} is not supported on this platform.. + /// + internal static string SQL_DbTypeNotSupportedOnThisPlatform { + get { + return ResourceManager.GetString("SQL_DbTypeNotSupportedOnThisPlatform", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot use 'Authentication=Active Directory Device Code Flow' with 'User ID', 'UID', 'Password' or 'PWD' connection string keywords.. /// @@ -9540,6 +9685,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Globalization Invariant Mode is not supported.. + /// + internal static string SQL_GlobalizationInvariantModeNotSupported { + get { + return ResourceManager.GetString("SQL_GlobalizationInvariantModeNotSupported", resourceCulture); + } + } + /// /// Looks up a localized string similar to Instance failure.. /// @@ -9720,6 +9874,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.. + /// + internal static string SQL_KerberosTicketMissingError { + get { + return ResourceManager.GetString("SQL_KerberosTicketMissingError", resourceCulture); + } + } + /// /// Looks up a localized string similar to The connection does not support MultipleActiveResultSets.. /// @@ -9774,6 +9937,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to The keyword 'Network Library' is not supported on this platform, prefix the 'Data Source' with the protocol desired instead ('tcp:' for a TCP connection, or 'np:' for a Named Pipe connection).. + /// + internal static string SQL_NetworkLibraryNotSupported { + get { + return ResourceManager.GetString("SQL_NetworkLibraryNotSupported", resourceCulture); + } + } + /// /// Looks up a localized string similar to Invalid attempt to GetBytes on column '{0}'. The GetBytes function can only be used on columns of type Text, NText, or Image.. /// @@ -10152,6 +10324,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Socket did not throw expected '{0}' with error code '{1}'.. + /// + internal static string SQL_SocketDidNotThrow { + get { + return ResourceManager.GetString("SQL_SocketDidNotThrow", resourceCulture); + } + } + /// /// Looks up a localized string similar to SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name. /// @@ -10296,6 +10477,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Not supported in .Net Standard 2.0.. + /// + internal static string SQL_TDS8_NotSupported_Netstandard2_0 { + get { + return ResourceManager.GetString("SQL_TDS8_NotSupported_Netstandard2_0", resourceCulture); + } + } + /// /// Looks up a localized string similar to Processing of results from SQL Server failed because of an invalid multipart name. /// @@ -10521,6 +10711,24 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to The server is attempting to use a feature that is not supported on this platform.. + /// + internal static string SQL_UnsupportedFeature { + get { + return ResourceManager.GetString("SQL_UnsupportedFeature", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The keyword '{0}' is not supported on this platform.. + /// + internal static string SQL_UnsupportedKeyword { + get { + return ResourceManager.GetString("SQL_UnsupportedKeyword", resourceCulture); + } + } + /// /// Looks up a localized string similar to SQL authentication method '{0}' is not supported.. /// @@ -10530,6 +10738,24 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to The currently loaded System.Transactions.dll does not support Global Transactions.. + /// + internal static string SQL_UnsupportedSysTxVersion { + get { + return ResourceManager.GetString("SQL_UnsupportedSysTxVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Received an unsupported token '{0}' while reading data from the server.. + /// + internal static string SQL_UnsupportedToken { + get { + return ResourceManager.GetString("SQL_UnsupportedToken", resourceCulture); + } + } + /// /// Looks up a localized string similar to User Instance and Failover are not compatible options. Please choose only one of the two in the connection string.. /// @@ -10575,6 +10801,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Exception occurred while trying to set the AppContext Switch '{0}'={1}.. + /// + internal static string SqlAppContextSwitchManager_InvalidValue { + get { + return ResourceManager.GetString("SqlAppContextSwitchManager_InvalidValue", resourceCulture); + } + } + /// /// Looks up a localized string similar to Notification values used by Microsoft SQL Server.. /// @@ -11025,6 +11260,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to SqlFileStream is not supported on this platform.. + /// + internal static string SqlFileStream_NotSupported { + get { + return ResourceManager.GetString("SqlFileStream_NotSupported", resourceCulture); + } + } + /// /// Looks up a localized string similar to The path name is invalid or does not point to a disk file.. /// @@ -11979,6 +12223,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to '{0}' is not a supported handle type.. + /// + internal static string SSPIInvalidHandleType { + get { + return ResourceManager.GetString("SSPIInvalidHandleType", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot get value because it is DBNull.. /// diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.de.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.de.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.de.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.de.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.es.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.es.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.es.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.es.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.fr.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.fr.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.fr.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.fr.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.it.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.it.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.it.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.it.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ja.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.ja.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ja.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.ja.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ko.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.ko.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ko.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.ko.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.pt-BR.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.pt-BR.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.pt-BR.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.pt-BR.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx similarity index 98% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 2b2374e490..0fdf9678fb 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4644,4 +4644,88 @@ Cannot set the AccessTokenCallback property if 'Authentication=Active Directory Default' has been specified in the connection string. + + {0} returned {1}. + + + Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level. + + + {0} failed with error {1}. + + + This method is not implemented by this class. + + + The requested security package is not supported. + + + Incorrect physicalConnection type. + + + Exception occurred while trying to set the AppContext Switch '{0}'={1}. + + + Type {0} is not supported on this platform. + + + Globalization Invariant Mode is not supported. + + + Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication. + + + The keyword 'Network Library' is not supported on this platform, prefix the 'Data Source' with the protocol desired instead ('tcp:' for a TCP connection, or 'np:' for a Named Pipe connection). + + + Socket did not throw expected '{0}' with error code '{1}'. + + + Not supported in .Net Standard 2.0. + + + The server is attempting to use a feature that is not supported on this platform. + + + The keyword '{0}' is not supported on this platform. + + + The currently loaded System.Transactions.dll does not support Global Transactions. + + + Received an unsupported token '{0}' while reading data from the server. + + + '{0}' is not a supported handle type. + + + SqlFileStream is not supported on this platform. + + + LocalDB is not supported on this platform. + + + Insufficient buffer space. Required: {0} Actual: {1}. + + + GSSAPI operation failed with status: {0} (Minor status: {1}). + + + GSSAPI operation failed with error - {0} ({1}). + + + No support for channel binding on operating systems other than Windows. + + + Target name should be non empty if default credentials are passed. + + + Requested protection level is not supported with the GSSAPI implementation currently installed. + + + Server implementation is not supported. + + + NTLM authentication is not possible with default credentials on this platform. + \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ru.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.ru.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ru.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.ru.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hans.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hans.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hans.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hans.resx diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hant.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hant.resx similarity index 100% rename from src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hant.resx rename to src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hant.resx From e2cad4c8a97455b82fd749d6bdfbf90b4478ed00 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 18 Jul 2023 10:26:03 -0700 Subject: [PATCH 07/21] Regenerate Strings.Designer.cs from netcore and netfx to ensure the results are still identical. --- src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 90a7cbe0b3..af57615706 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -38,8 +38,7 @@ internal class Strings { [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { - if (object.ReferenceEquals(resourceMan, null)) - { + if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Data.SqlClient.Resources.Strings", typeof(Strings).Assembly); resourceMan = temp; } From ba3aed16f152b6a128d83b8b3ae29084081cf837 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 18 Jul 2023 11:22:54 -0700 Subject: [PATCH 08/21] Added string resource for testing of Localization Pipeline --- .../src/Resources/Strings.Designer.cs | 9 +++++++++ src/Microsoft.Data.SqlClient/src/Resources/Strings.resx | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index af57615706..562a8020f2 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -6999,6 +6999,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to Localization Testing of Pipeline. + /// + internal static string Localization_Testing { + get { + return ResourceManager.GetString("Localization Testing", resourceCulture); + } + } + /// /// Looks up a localized string similar to The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.. /// diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 0fdf9678fb..bef227b88a 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4728,4 +4728,7 @@ NTLM authentication is not possible with default credentials on this platform. + + Localization Testing of Pipeline + \ No newline at end of file From 8bf2a476a07eb3d8dd34acb782f05091ae1212bd Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Wed, 19 Jul 2023 08:39:49 -0700 Subject: [PATCH 09/21] Added test string. --- .../src/Resources/Strings.Designer.cs | 18 +++++++++--------- .../src/Resources/Strings.resx | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 562a8020f2..40019850f2 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -6999,15 +6999,6 @@ internal class Strings { } } - /// - /// Looks up a localized string similar to Localization Testing of Pipeline. - /// - internal static string Localization_Testing { - get { - return ResourceManager.GetString("Localization Testing", resourceCulture); - } - } - /// /// Looks up a localized string similar to The collection name '{0}' matches at least two collections with the same name but with different case, but does not match any of them exactly.. /// @@ -13895,5 +13886,14 @@ internal class Strings { return ResourceManager.GetString("Xml_ValueOutOfRange", resourceCulture); } } + + /// + /// Looks up a localized string similar to Test string. + /// + internal static string ZZZ_Test { + get { + return ResourceManager.GetString("ZZZ_Test", resourceCulture); + } + } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index bef227b88a..bd0ac261f7 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4728,7 +4728,7 @@ NTLM authentication is not possible with default credentials on this platform. - - Localization Testing of Pipeline + + Test string \ No newline at end of file From 907bc61fd38d52f80428d0d0cb441a032dfce808 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Wed, 19 Jul 2023 09:17:34 -0700 Subject: [PATCH 10/21] Testing for Pipeline. --- .../src/Resources/Strings.Designer.cs | 9 +++++++++ src/Microsoft.Data.SqlClient/src/Resources/Strings.resx | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 40019850f2..97fe0a8f8c 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -13895,5 +13895,14 @@ internal class Strings { return ResourceManager.GetString("ZZZ_Test", resourceCulture); } } + + /// + /// Looks up a localized string similar to Test string 2. + /// + internal static string ZZZ_Test2 { + get { + return ResourceManager.GetString("ZZZ_Test2", resourceCulture); + } + } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index bd0ac261f7..8f1181bf86 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4731,4 +4731,7 @@ Test string + + Test string 2 + \ No newline at end of file From b27d3bdd06f56427ae48938335f7d42c9013aa64 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Wed, 19 Jul 2023 10:11:14 -0700 Subject: [PATCH 11/21] Add test string 3 for pipeline manual test. --- .../src/Resources/Strings.Designer.cs | 9 +++++++++ src/Microsoft.Data.SqlClient/src/Resources/Strings.resx | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 97fe0a8f8c..d3b7e8b2da 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -13904,5 +13904,14 @@ internal class Strings { return ResourceManager.GetString("ZZZ_Test2", resourceCulture); } } + + /// + /// Looks up a localized string similar to Test string 3. + /// + internal static string ZZZ_Test3 { + get { + return ResourceManager.GetString("ZZZ_Test3", resourceCulture); + } + } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 8f1181bf86..ca2700a8a3 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4734,4 +4734,7 @@ Test string 2 + + Test string 3 + \ No newline at end of file From af7297a2851cbdeb474825d8c24801f2c8216f81 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 21 Jul 2023 10:39:23 -0700 Subject: [PATCH 12/21] Add localization test string. --- .../src/Resources/Strings.Designer.cs | 9 +++++++++ src/Microsoft.Data.SqlClient/src/Resources/Strings.resx | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index d3b7e8b2da..a7736cd282 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -13913,5 +13913,14 @@ internal class Strings { return ResourceManager.GetString("ZZZ_Test3", resourceCulture); } } + + /// + /// Looks up a localized string similar to Localization Task Test. + /// + internal static string ZZZ_Test4 { + get { + return ResourceManager.GetString("ZZZ_Test4", resourceCulture); + } + } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index ca2700a8a3..39e8384fbd 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4737,4 +4737,7 @@ Test string 3 + + Localization Task Test + \ No newline at end of file From 4a06b1b6cdef5338013a2c49409d5c742f72a166 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Wed, 26 Jul 2023 10:44:21 -0700 Subject: [PATCH 13/21] Added one more string to localize. --- .../src/Resources/Strings.Designer.cs | 9 +++++++++ src/Microsoft.Data.SqlClient/src/Resources/Strings.resx | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index a7736cd282..4f5d67cfc4 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -13922,5 +13922,14 @@ internal class Strings { return ResourceManager.GetString("ZZZ_Test4", resourceCulture); } } + + /// + /// Looks up a localized string similar to Please work this time.. + /// + internal static string ZZZ_Test5 { + get { + return ResourceManager.GetString("ZZZ_Test5", resourceCulture); + } + } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 39e8384fbd..90e997bea1 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4740,4 +4740,7 @@ Localization Task Test + + Please work this time. + \ No newline at end of file From b3a926ebf3041fcfc5fab1ae729509a7129d6a1a Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Mon, 31 Jul 2023 09:28:29 -0700 Subject: [PATCH 14/21] Remove test strings to localize. --- .../src/Resources/Strings.Designer.cs | 45 ------------------- .../src/Resources/Strings.resx | 15 ------- 2 files changed, 60 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index 4f5d67cfc4..af57615706 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -13886,50 +13886,5 @@ internal class Strings { return ResourceManager.GetString("Xml_ValueOutOfRange", resourceCulture); } } - - /// - /// Looks up a localized string similar to Test string. - /// - internal static string ZZZ_Test { - get { - return ResourceManager.GetString("ZZZ_Test", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Test string 2. - /// - internal static string ZZZ_Test2 { - get { - return ResourceManager.GetString("ZZZ_Test2", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Test string 3. - /// - internal static string ZZZ_Test3 { - get { - return ResourceManager.GetString("ZZZ_Test3", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Localization Task Test. - /// - internal static string ZZZ_Test4 { - get { - return ResourceManager.GetString("ZZZ_Test4", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Please work this time.. - /// - internal static string ZZZ_Test5 { - get { - return ResourceManager.GetString("ZZZ_Test5", resourceCulture); - } - } } } diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 90e997bea1..0fdf9678fb 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4728,19 +4728,4 @@ NTLM authentication is not possible with default credentials on this platform. - - Test string - - - Test string 2 - - - Test string 3 - - - Localization Task Test - - - Please work this time. - \ No newline at end of file From fea73352b2dbc381e156d3682193089e655cba2d Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Thu, 3 Aug 2023 12:22:00 -0700 Subject: [PATCH 15/21] Removed blank lines in the .netcore project file. --- .../netcore/src/Microsoft.Data.SqlClient.csproj | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 04cc6dd62f..1227dce62c 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -495,11 +495,9 @@ Microsoft\Data\SqlClient\SqlStream.cs - Resources\ResCategoryAttribute.cs - Resources\ResDescriptionAttribute.cs @@ -573,25 +571,21 @@ - Resources\StringsHelper.NetCore.cs - Resources\Strings.Designer.cs True True Strings.resx - Resources\Strings.resx ResXFileCodeGenerator Strings.Designer.cs System - Common\CoreLib\System\Threading\Tasks\TaskToApm.cs From 4d261eeb282b031d89ac96fe45d2c5285ed40e98 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 8 Aug 2023 17:51:16 -0700 Subject: [PATCH 16/21] Consolidated netcore and netfx StringHelper class. Made netcore Strings.ResourceNames.cs dynamically created. Udated MDS nuspec. Added localization unit tests. --- src/Directory.Build.props | 6 +- .../src/Microsoft.Data.SqlClient.csproj | 18 +- .../netcore/src/Resources/StringsHelper.cs | 170 ----------------- .../netfx/src/Microsoft.Data.SqlClient.csproj | 5 +- .../GenerateResourceStringsSource.targets | 2 +- .../src/Resources/Strings.Designer.cs | 9 + .../src/Resources/Strings.resx | 3 + .../src/Resources/StringsHelper.cs | 62 +++++- .../scripts/GenerateResourceStringsSource.ps1 | 52 +++++ .../GenerateResourceStringsSource.targets | 11 ++ .../tests/FunctionalTests/LocalizationTest.cs | 177 ++++++++++++++++++ .../Microsoft.Data.SqlClient.Tests.csproj | 1 + tools/specs/Microsoft.Data.SqlClient.nuspec | 56 +++++- 13 files changed, 383 insertions(+), 189 deletions(-) delete mode 100644 src/Microsoft.Data.SqlClient/netcore/src/Resources/StringsHelper.cs create mode 100644 src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 create mode 100644 src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets create mode 100644 src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7b52e06e34..652f8b7bb5 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -43,9 +43,13 @@ $(ProjectDir)Microsoft.Data.SqlClient\ $(ProjectDir)Microsoft.SqlServer.Server\ $(ManagedSourceCode)netcore\ + $(ManagedSourceCode)src\Resources\ + Strings + SqlClient.Resources.$(ResxFileName) + $(ResxFileName).ResourceNames.cs $(ManagedSourceCode)netfx\ $(ManagedSourceCode)src\Resources\ - $(ManagedSourceCode)add-ons\ + $(ManagedSourceCode)add-ons\ $(RepoRoot)src\Microsoft.SqlServer.Server\ $(Artifacts)obj\ $(NetCoreSource)src\Common\src diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj index 1227dce62c..000dfb56df 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj @@ -501,9 +501,6 @@ Resources\ResDescriptionAttribute.cs - - Resources\StringsHelper.cs - Common\System\Diagnostics\CodeAnalysis.cs @@ -570,10 +567,10 @@ - - - Resources\StringsHelper.NetCore.cs - + + + Resources\StringsHelper.cs + Resources\Strings.Designer.cs True @@ -582,10 +579,16 @@ Resources\Strings.resx + Microsoft.Data.SqlClient.Resources.Strings.resources ResXFileCodeGenerator Strings.Designer.cs System + + Resources\%(RecursiveDir)%(Filename)%(Extension) + + + Common\CoreLib\System\Threading\Tasks\TaskToApm.cs @@ -987,4 +990,5 @@ + diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Resources/StringsHelper.cs b/src/Microsoft.Data.SqlClient/netcore/src/Resources/StringsHelper.cs deleted file mode 100644 index 3dc46ff2d5..0000000000 --- a/src/Microsoft.Data.SqlClient/netcore/src/Resources/StringsHelper.cs +++ /dev/null @@ -1,170 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System; -using System.Runtime.CompilerServices; - -namespace Microsoft.Data -{ - internal partial class StringsHelper : Strings - { - // This method is used to decide if we need to append the exception message parameters to the message when calling Strings.Format. - // by default it returns false. - // Native code generators can replace the value this returns based on user input at the time of native code generation. - // Marked as NoInlining because if this is used in an AoT compiled app that is not compiled into a single file, the user - // could compile each module with a different setting for this. We want to make sure there's a consistent behavior - // that doesn't depend on which native module this method got inlined into. - [MethodImpl(MethodImplOptions.NoInlining)] - private static bool UsingResourceKeys() - { - return false; - } - - public static string Format(string resourceFormat, params object[] args) - { - if (args is not null) - { - if (UsingResourceKeys()) - { - return resourceFormat + string.Join(", ", args); - } - - return string.Format(resourceFormat, args); - } - - return resourceFormat; - } - - public static string Format(string resourceFormat, object p1) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1); - } - - return string.Format(resourceFormat, p1); - } - - public static string Format(string resourceFormat, object p1, object p2) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2); - } - - return string.Format(resourceFormat, p1, p2); - } - - public static string Format(string resourceFormat, object p1, object p2, object p3) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2, p3); - } - - return string.Format(resourceFormat, p1, p2, p3); - } - } - - // This class is added temporary in order to have all Strings.resx as constant. - // NetFx is creating them on build time with powershell and target file located in netfx/tools folder and adds exact same class as below to obj folder for netfx. - // When we have the localization available for netcore we can follow the same pattern and add MetdaDataAttribute class and run them only on windows platform - internal partial class StringsHelper - { - internal class ResourceNames - { - internal const string DataCategory_Data = @"Data"; - internal const string DataCategory_Update = @"Update"; - internal const string DataCategory_Xml = @"XML"; - internal const string DbCommand_CommandTimeout = @"Time to wait for command to execute."; - internal const string DbConnection_State = @"The ConnectionState indicating whether the connection is open or closed."; - internal const string DataCategory_Fill = @"Fill"; - internal const string DataCategory_InfoMessage = @"InfoMessage"; - internal const string DataCategory_StatementCompleted = @"StatementCompleted"; - internal const string DataCategory_Notification = @"Notification"; - internal const string DataCategory_Advanced = @"Advanced"; - internal const string DataCategory_Context = @"Context"; - internal const string DataCategory_Initialization = @"Initialization"; - internal const string DataCategory_Pooling = @"Pooling"; - internal const string DataCategory_Security = @"Security"; - internal const string DataCategory_Source = @"Source"; - internal const string DataCategory_Replication = @"Replication"; - internal const string DataCategory_ConnectionResilency = @"Connection Resiliency"; - internal const string DbDataAdapter_DeleteCommand = @"Used during Update for deleted rows in DataSet."; - internal const string DbDataAdapter_InsertCommand = @"Used during Update for new rows in DataSet."; - internal const string DbDataAdapter_SelectCommand = @"Used during Fill/FillSchema."; - internal const string DbDataAdapter_UpdateCommand = @"Used during Update for modified rows in DataSet."; - internal const string DbDataAdapter_RowUpdated = @"Event triggered before every DataRow during Update."; - internal const string DbDataAdapter_RowUpdating = @"Event triggered after every DataRow during Update."; - internal const string DbConnectionString_ApplicationName = @"The name of the application."; - internal const string DbConnectionString_AttachDBFilename = @"The name of the primary file, including the full path name, of an attachable database."; - internal const string DbConnectionString_ConnectTimeout = @"The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error."; - internal const string DbConnectionString_CurrentLanguage = @"The SQL Server Language record name."; - internal const string DbConnectionString_DataSource = @"Indicates the name of the data source to connect to."; - internal const string DbConnectionString_Encrypt = @"When true, SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed."; - internal const string DbConnectionString_Enlist = @"Sessions in a Component Services (or MTS, if you are using Microsoft Windows NT) environment should automatically be enlisted in a global transaction where required."; - internal const string DbConnectionString_FailoverPartner = @"The name or network address of the instance of SQL Server that acts as a failover partner."; - internal const string DbConnectionString_FailoverPartnerSPN = @"The service principal name (SPN) of the failover partner."; - internal const string DbConnectionString_HostNameInCertificate = @"The hostname to be expected in the server's certificate when encryption is negotiated, if it's different from the default value derived from Addr/Address/Server."; - internal const string DbConnectionString_InitialCatalog = @"The name of the initial catalog or database in the data source."; - internal const string DbConnectionString_IntegratedSecurity = @"Whether the connection is to be a secure connection or not."; - internal const string DbConnectionString_LoadBalanceTimeout = @"The minimum amount of time (in seconds) for this connection to live in the pool before being destroyed."; - internal const string DbConnectionString_MaxPoolSize = @"The maximum number of connections allowed in the pool."; - internal const string DbConnectionString_MinPoolSize = @"The minimum number of connections allowed in the pool."; - internal const string DbConnectionString_MultipleActiveResultSets = @"When true, multiple result sets can be returned and read from one connection."; - internal const string DbConnectionString_MultiSubnetFailover = @"If your application is connecting to a high-availability, disaster recovery (AlwaysOn) availability group (AG) on different subnets, MultiSubnetFailover=Yes configures SqlConnection to provide faster detection of and connection to the (currently) active server."; - internal const string DbConnectionString_PacketSize = @"Size in bytes of the network packets used to communicate with an instance of SQL Server."; - internal const string DbConnectionString_Password = @"Indicates the password to be used when connecting to the data source."; - internal const string DbConnectionString_PersistSecurityInfo = @"When false, security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state."; - internal const string DbConnectionString_Pooling = @"When true, the connection object is drawn from the appropriate pool, or if necessary, is created and added to the appropriate pool."; - internal const string DbConnectionString_Replication = @"Used by SQL Server in Replication."; - internal const string DbConnectionString_ServerCertificate = @"The path to a certificate file to match against the SQL Server TLS/SSL certificate."; - internal const string DbConnectionString_ServerSPN = @"The service principal name (SPN) of the server."; - internal const string DbConnectionString_TransactionBinding = @"Indicates binding behavior of connection to a System.Transactions Transaction when enlisted."; - internal const string DbConnectionString_TrustServerCertificate = @"When true (and encrypt=true), SQL Server uses SSL encryption for all data sent between the client and server without validating the server certificate."; - internal const string DbConnectionString_TypeSystemVersion = @"Indicates which server type system the provider will expose through the DataReader."; - internal const string DbConnectionString_UserID = @"Indicates the user ID to be used when connecting to the data source."; - internal const string DbConnectionString_UserInstance = @"Indicates whether the connection will be re-directed to connect to an instance of SQL Server running under the user's account."; - internal const string DbConnectionString_WorkstationID = @"The name of the workstation connecting to SQL Server."; - internal const string DbConnectionString_ApplicationIntent = @"Declares the application workload type when connecting to a server."; - internal const string DbConnectionString_ConnectRetryCount = @"Number of attempts to restore connection."; - internal const string DbConnectionString_ConnectRetryInterval = @"Delay between attempts to restore connection."; - internal const string DbConnectionString_Authentication = @"Specifies the method of authenticating with SQL Server."; - internal const string DbConnectionString_Certificate = @"Specified client certificate for authenticating with SQL Server. "; - internal const string SqlConnection_AccessToken = @"Access token to use for authentication."; - internal const string SqlConnection_ConnectionString = @"Information used to connect to a DataSource, such as 'Data Source=x;Initial Catalog=x;Integrated Security=SSPI'."; - internal const string SqlConnection_ConnectionTimeout = @"Current connection timeout value, 'Connect Timeout=X' in the ConnectionString."; - internal const string SqlConnection_Database = @"Current SQL Server database, 'Initial Catalog=X' in the connection string."; - internal const string SqlConnection_DataSource = @"Current SqlServer that the connection is opened to, 'Data Source=X' in the connection string."; - internal const string SqlConnection_PacketSize = @"Network packet size, 'Packet Size=x' in the connection string."; - internal const string SqlConnection_ServerVersion = @"Version of the SQL Server accessed by the SqlConnection."; - internal const string SqlConnection_WorkstationId = @"Workstation Id, 'Workstation ID=x' in the connection string."; - internal const string SqlConnection_StatisticsEnabled = @"Collect statistics for this connection."; - internal const string SqlConnection_ClientConnectionId = @"A guid to represent the physical connection."; - internal const string SqlConnection_Credential = @"User Id and secure password to use for authentication."; - internal const string DbConnection_InfoMessage = @"Event triggered when messages arrive from the DataSource."; - internal const string DbCommand_CommandText = @"Command text to execute."; - internal const string DbCommand_CommandType = @"How to interpret the CommandText."; - internal const string DbCommand_Connection = @"Connection used by the command."; - internal const string DbCommand_Parameters = @"The parameters collection."; - internal const string DbCommand_Transaction = @"The transaction used by the command."; - internal const string DbCommand_UpdatedRowSource = @"When used by a DataAdapter.Update, how command results are applied to the current DataRow."; - internal const string DbCommand_StatementCompleted = @"When records are affected by a given statement by the execution of the command."; - internal const string SqlParameter_SourceColumnNullMapping = @"When used by DataAdapter.Update, the parameter value is changed from DBNull.Value into (Int32)1 or (Int32)0 if non-null."; - internal const string SqlCommand_Notification = @"Notification values used by Microsoft SQL Server."; - internal const string TCE_DbConnectionString_EnclaveAttestationUrl = @"Specifies an endpoint of an enclave attestation service, which will be used to verify whether the enclave, configured in the SQL Server instance for computations on database columns encrypted using Always Encrypted, is valid and secure."; - internal const string TCE_SqlCommand_ColumnEncryptionSetting = @"Column encryption setting for the command. Overrides the connection level default."; - internal const string TCE_DbConnectionString_ColumnEncryptionSetting = @"Default column encryption setting for all the commands on the connection."; - internal const string TCE_SqlConnection_TrustedColumnMasterKeyPaths = @"Dictionary object containing SQL Server names and their trusted column master key paths."; - internal const string DbConnectionString_PoolBlockingPeriod = @"Defines the blocking period behavior for a connection pool."; - internal const string TCE_SqlConnection_ColumnEncryptionQueryMetadataCacheEnabled = @"Defines whether query metadata caching is enabled."; - internal const string TCE_SqlConnection_ColumnEncryptionKeyCacheTtl = @"Defines the time-to-live of entries in the column encryption key cache."; - internal const string TCE_DbConnectionString_AttestationProtocol = @"Specifies an attestation protocol for its corresponding enclave attestation service."; - internal const string TCE_DbConnectionString_IPAddressPreference = @"Specifies an IP address preference when connecting to SQL instances."; - internal const string SqlConnection_ServerProcessId = @"Server Process Id (SPID) of the active connection."; - internal const string SqlCommandBuilder_DataAdapter = @"The DataAdapter for which to automatically generate SqlCommands."; - } - } -} - diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj index 3a8c854ca1..df9c0f3fa9 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj @@ -6,9 +6,6 @@ Microsoft.Data.SqlClient v4.6.2 true - Strings - SqlClient.Resources.$(ResxFileName) - $(ResxFileName).ResourceNames.cs Microsoft.Data.SqlClient AnyCPU $(BinFolder)$(Configuration).$(OutputPlatform)\ @@ -737,7 +734,7 @@ - + diff --git a/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateResourceStringsSource.targets b/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateResourceStringsSource.targets index 618fbd6d51..1d5e78f852 100644 --- a/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateResourceStringsSource.targets +++ b/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateResourceStringsSource.targets @@ -2,7 +2,7 @@ + -command "&$(NetFxSource)..\src\tools\scripts\GenerateResourceStringsSource.ps1 -ResxFileDir '$(NetFxResources)' -ResxFileName '$(ResxFileName)' -OutputPath '$(IntermediateOutputPath)' -GeneratedSourceFileName '$(GeneratedSourceFileName)'"" /> diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs index af57615706..067b3dea02 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs @@ -11709,6 +11709,15 @@ internal class Strings { } } + /// + /// Looks up a localized string similar to When used by DataAdapter.Update, the parameter value is changed from DBNull.Value into (Int32)1 or (Int32)0 if non-null.. + /// + internal static string SqlParameter_SourceColumnNullMapping { + get { + return ResourceManager.GetString("SqlParameter_SourceColumnNullMapping", resourceCulture); + } + } + /// /// Looks up a localized string similar to The parameter native type.. /// diff --git a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx index 0fdf9678fb..e84af2f09d 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx +++ b/src/Microsoft.Data.SqlClient/src/Resources/Strings.resx @@ -4728,4 +4728,7 @@ NTLM authentication is not possible with default credentials on this platform. + + When used by DataAdapter.Update, the parameter value is changed from DBNull.Value into (Int32)1 or (Int32)0 if non-null. + \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs b/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs index cfdd2b8b97..5a65b07355 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs @@ -5,6 +5,7 @@ using System; using System.Globalization; using System.Resources; +using System.Runtime.CompilerServices; using System.Threading; namespace Microsoft.Data @@ -54,16 +55,69 @@ public static string GetString(string res, params object[] args) args[i] = value.Substring(0, 1024 - 3) + "..."; } } - #if NETFRAMEWORK return string.Format(CultureInfo.CurrentCulture, res, args); - #else - return Format(res, args); - #endif } else { return res; } } + + // This method is used to decide if we need to append the exception message parameters to the message when calling Strings.Format. + // by default it returns false. + // Native code generators can replace the value this returns based on user input at the time of native code generation. + // Marked as NoInlining because if this is used in an AoT compiled app that is not compiled into a single file, the user + // could compile each module with a different setting for this. We want to make sure there's a consistent behavior + // that doesn't depend on which native module this method got inlined into. + [MethodImpl(MethodImplOptions.NoInlining)] + private static bool UsingResourceKeys() + { + return false; + } + + public static string Format(string resourceFormat, params object[] args) + { + if (args is not null) + { + if (UsingResourceKeys()) + { + return resourceFormat + string.Join(", ", args); + } + + return string.Format(resourceFormat, args); + } + + return resourceFormat; + } + + public static string Format(string resourceFormat, object p1) + { + if (UsingResourceKeys()) + { + return string.Join(", ", resourceFormat, p1); + } + + return string.Format(resourceFormat, p1); + } + + public static string Format(string resourceFormat, object p1, object p2) + { + if (UsingResourceKeys()) + { + return string.Join(", ", resourceFormat, p1, p2); + } + + return string.Format(resourceFormat, p1, p2); + } + + public static string Format(string resourceFormat, object p1, object p2, object p3) + { + if (UsingResourceKeys()) + { + return string.Join(", ", resourceFormat, p1, p2, p3); + } + + return string.Format(resourceFormat, p1, p2, p3); + } } } diff --git a/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 b/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 new file mode 100644 index 0000000000..cb98822e97 --- /dev/null +++ b/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 @@ -0,0 +1,52 @@ +# Script: GenerateResourceStringsSource.ps1 +# Author: Keerat Singh +# Date: 25-Jan-2019 +# Comments: This Reads the resources from the resx file and converts them +# into strongly typed const strings +# + +param( + [Parameter(Mandatory=$true)] + [string]$ResxFileDir, + [Parameter(Mandatory=$true)] + [string]$ResxFileName, + [Parameter(Mandatory=$true)] + [string]$OutputPath, + [string]$GeneratedSourceFileName + ) + +# Read the resx file +$XmlFilePath = "${ResxFileDir}${ResxFileName}.resx" +[xml]$XmlDocument = Get-Content -Path "$XmlFilePath" + +# Initial content for the Source File. +$GeneratedSourceFileContent= " +//------------------------------------------------------------------------------ +// This code was auto-generated by msbuild target. +// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. +//------------------------------------------------------------------------------ + +using System; +using System.Globalization; +using System.Resources; +using System.Threading; + +namespace Microsoft.Data +{ + internal partial class StringsHelper : $ResxFileName + { + internal class ResourceNames + {`n" +ForEach($node in $XmlDocument.root.data) +{ + $ResourceName = $node.name + # Escape the Double Quotes in the resource string value. + $ResourceValue = $node.value -replace '"','""' + # Convert Resource Name and Value to internal const string + $GeneratedSourceFileContent= $GeneratedSourceFileContent + " internal const string $ResourceName = @`"$ResourceValue`";`n" +} + +$GeneratedSourceFileContent= $GeneratedSourceFileContent + " }`n}`n}" + +# Output to File +$GeneratedSourceFileContent | Out-File "${OutputPath}${GeneratedSourceFileName}" \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets b/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets new file mode 100644 index 0000000000..1d5e78f852 --- /dev/null +++ b/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs new file mode 100644 index 0000000000..d160aa0d19 --- /dev/null +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs @@ -0,0 +1,177 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Data; +using System.Data.Common; +using System.Globalization; +using System.Reflection; +using System.Security; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.SqlServer.TDS.Servers; +using Xunit; + +namespace Microsoft.Data.SqlClient.Tests +{ + public class LocalizationTest + { + [Fact] + public void Localization_EN_Test() + { + var localized = ""; + var expected = "A network-related or instance-specific error occurred while establishing a connection to SQL Server."; + + using TestTdsServer server = TestTdsServer.StartTestServer(); + var connStr = server.ConnectionString; + connStr = connStr.Replace("localhost", "dummy"); + using SqlConnection connection = new SqlConnection(connStr); + + try + { + connection.Open(); + } + catch (Exception ex) + { + localized = ex.Message; + } + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_DE_Test() + { + var expected = "Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server."; + + string localized = GetLocalizedErrorMessage("de-DE"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_ES_Test() + { + var expected = "Error relacionado con la red o específico de la instancia mientras se establecía una conexión con el servidor SQL Server."; + + string localized = GetLocalizedErrorMessage("es-ES"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_FR_Test() + { + var expected = "Une erreur liée au réseau ou spécifique à l'instance s'est produite lors de l'établissement d'une connexion à SQL Server."; + + string localized = GetLocalizedErrorMessage("fr-FR"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_IT_Test() + { + var expected = "Si è verificato un errore di rete o specifico dell'istanza mentre si cercava di stabilire una connessione con SQL Server."; + + string localized = GetLocalizedErrorMessage("it-IT"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_JA_Test() + { + var expected = "SQL Server への接続を確立しているときにネットワーク関連またはインスタンス固有のエラーが発生しました。"; + + string localized = GetLocalizedErrorMessage("ja-JA"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_KO_Test() + { + var expected = "SQL Server에 연결을 설정하는 중에 네트워크 관련 또는 인스턴스 관련 오류가 발생했습니다."; + + string localized = GetLocalizedErrorMessage("ko-KO"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_PT_BR_Test() + { + var expected = "Erro de rede ou específico à instância ao estabelecer conexão com o SQL Server."; + + string localized = GetLocalizedErrorMessage("pt-BR"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_RU_Test() + { + var expected = "При установлении соединения с SQL Server произошла ошибка, связанная с сетью или с определенным экземпляром."; + + string localized = GetLocalizedErrorMessage("ru-RU"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_ZH_HANS_Test() + { + var expected = "在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。"; + + string localized = GetLocalizedErrorMessage("zh-Hans"); + + Assert.Contains(expected, localized); + } + + [Fact] + public void Localization_ZH_HANT_Test() + { + var expected = "建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。"; + + string localized = GetLocalizedErrorMessage("zh-Hant"); + + Assert.Contains(expected, localized); + } + + private string GetLocalizedErrorMessage(string culture) + { + var localized = ""; + + CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture; + CultureInfo savedUICulture = Thread.CurrentThread.CurrentUICulture; + + Thread.CurrentThread.CurrentCulture = new CultureInfo(culture); + Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture); + + using TestTdsServer server = TestTdsServer.StartTestServer(); + var connStr = server.ConnectionString; + connStr = connStr.Replace("localhost", "dummy"); + using SqlConnection connection = new SqlConnection(connStr); + + try + { + connection.Open(); + } + catch (Exception ex) + { + localized = ex.Message; + } + + // Restore saved culture if necessary + if (Thread.CurrentThread.CurrentCulture != savedCulture) + Thread.CurrentThread.CurrentCulture = savedCulture; + if (Thread.CurrentThread.CurrentUICulture != savedUICulture) + Thread.CurrentThread.CurrentUICulture = savedUICulture; + + return localized; + } + + } +} diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj index a90960bdc5..117c4ea9f0 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj @@ -27,6 +27,7 @@ + diff --git a/tools/specs/Microsoft.Data.SqlClient.nuspec b/tools/specs/Microsoft.Data.SqlClient.nuspec index 84e5634ba7..984774b0e4 100644 --- a/tools/specs/Microsoft.Data.SqlClient.nuspec +++ b/tools/specs/Microsoft.Data.SqlClient.nuspec @@ -144,7 +144,7 @@ When using NuGet 3.x this package requires at least version 3.4. - + @@ -179,22 +179,74 @@ When using NuGet 3.x this package requires at least version 3.4. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 847e3eaa405806e4fa32bf9c22cb52a49d7c0fd3 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Wed, 9 Aug 2023 16:13:28 -0700 Subject: [PATCH 17/21] Add powershell command for linux environment in GenerateResourceStringsSource.targets. --- build.proj | 2 +- .../src/tools/targets/GenerateResourceStringsSource.targets | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.proj b/build.proj index 2e1ba19930..465f9264c3 100644 --- a/build.proj +++ b/build.proj @@ -105,7 +105,7 @@ - $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType)" + $(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType) diff --git a/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets b/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets index 1d5e78f852..cf6f76d908 100644 --- a/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets +++ b/src/Microsoft.Data.SqlClient/src/tools/targets/GenerateResourceStringsSource.targets @@ -2,7 +2,8 @@ + -command "&$(NetFxSource)..\src\tools\scripts\GenerateResourceStringsSource.ps1 -ResxFileDir '$(NetFxResources)' -ResxFileName '$(ResxFileName)' -OutputPath '$(IntermediateOutputPath)' -GeneratedSourceFileName '$(GeneratedSourceFileName)'"" Condition=" '$(OS)' == 'Windows_NT' "/> + From 98281b9fd0aba90c7060333f68f51ddb18c16062 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Thu, 10 Aug 2023 16:21:12 -0700 Subject: [PATCH 18/21] Refactored LocalizationTest class to use Theory and InlineData. --- .../tests/FunctionalTests/LocalizationTest.cs | 150 ++++-------------- 1 file changed, 31 insertions(+), 119 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs index d160aa0d19..8bcd201edd 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System; +using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Globalization; @@ -10,6 +11,7 @@ using System.Security; using System.Threading; using System.Threading.Tasks; +using System.Windows.Input; using Microsoft.SqlServer.TDS.Servers; using Xunit; @@ -17,127 +19,37 @@ namespace Microsoft.Data.SqlClient.Tests { public class LocalizationTest { - [Fact] - public void Localization_EN_Test() + private Dictionary _expectedCultureErrorMessage = new Dictionary { - var localized = ""; - var expected = "A network-related or instance-specific error occurred while establishing a connection to SQL Server."; - - using TestTdsServer server = TestTdsServer.StartTestServer(); - var connStr = server.ConnectionString; - connStr = connStr.Replace("localhost", "dummy"); - using SqlConnection connection = new SqlConnection(connStr); - - try - { - connection.Open(); - } - catch (Exception ex) - { - localized = ex.Message; - } - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_DE_Test() - { - var expected = "Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server."; - - string localized = GetLocalizedErrorMessage("de-DE"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_ES_Test() - { - var expected = "Error relacionado con la red o específico de la instancia mientras se establecía una conexión con el servidor SQL Server."; - - string localized = GetLocalizedErrorMessage("es-ES"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_FR_Test() - { - var expected = "Une erreur liée au réseau ou spécifique à l'instance s'est produite lors de l'établissement d'une connexion à SQL Server."; - - string localized = GetLocalizedErrorMessage("fr-FR"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_IT_Test() + { "en-EN", "A network-related or instance-specific error occurred while establishing a connection to SQL Server." }, + { "de-DE", "Netzwerkbezogener oder instanzspezifischer Fehler beim Herstellen einer Verbindung mit SQL Server." }, + { "es-ES", "Error relacionado con la red o específico de la instancia mientras se establecía una conexión con el servidor SQL Server." }, + { "fr-FR", "Une erreur liée au réseau ou spécifique à l'instance s'est produite lors de l'établissement d'une connexion à SQL Server." }, + { "it-IT", "Si è verificato un errore di rete o specifico dell'istanza mentre si cercava di stabilire una connessione con SQL Server." }, + { "ja-JA", "SQL Server への接続を確立しているときにネットワーク関連またはインスタンス固有のエラーが発生しました。" }, + { "ko-KO", "SQL Server에 연결을 설정하는 중에 네트워크 관련 또는 인스턴스 관련 오류가 발생했습니다." }, + { "pt-BR", "Erro de rede ou específico à instância ao estabelecer conexão com o SQL Server." }, + { "ru-RU", "При установлении соединения с SQL Server произошла ошибка, связанная с сетью или с определенным экземпляром." }, + { "zh-Hans", "在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。" }, + { "zh-Hant", "建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。" }, + }; + + [Theory] + [InlineData("en-EN")] + [InlineData("de-DE")] + [InlineData("es-ES")] + [InlineData("fr-FR")] + [InlineData("it-IT")] + [InlineData("ja-JA")] + [InlineData("ko-KO")] + [InlineData("pt-BR")] + [InlineData("ru-RU")] + [InlineData("zh-Hans")] + [InlineData("zh-Hant")] + public void Localization_Tests(string culture) { - var expected = "Si è verificato un errore di rete o specifico dell'istanza mentre si cercava di stabilire una connessione con SQL Server."; - - string localized = GetLocalizedErrorMessage("it-IT"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_JA_Test() - { - var expected = "SQL Server への接続を確立しているときにネットワーク関連またはインスタンス固有のエラーが発生しました。"; - - string localized = GetLocalizedErrorMessage("ja-JA"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_KO_Test() - { - var expected = "SQL Server에 연결을 설정하는 중에 네트워크 관련 또는 인스턴스 관련 오류가 발생했습니다."; - - string localized = GetLocalizedErrorMessage("ko-KO"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_PT_BR_Test() - { - var expected = "Erro de rede ou específico à instância ao estabelecer conexão com o SQL Server."; - - string localized = GetLocalizedErrorMessage("pt-BR"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_RU_Test() - { - var expected = "При установлении соединения с SQL Server произошла ошибка, связанная с сетью или с определенным экземпляром."; - - string localized = GetLocalizedErrorMessage("ru-RU"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_ZH_HANS_Test() - { - var expected = "在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。"; - - string localized = GetLocalizedErrorMessage("zh-Hans"); - - Assert.Contains(expected, localized); - } - - [Fact] - public void Localization_ZH_HANT_Test() - { - var expected = "建立連接至 SQL Server 時,發生網路相關或執行個體特定的錯誤。"; - - string localized = GetLocalizedErrorMessage("zh-Hant"); - - Assert.Contains(expected, localized); + string localized = GetLocalizedErrorMessage(culture); + Assert.Contains(_expectedCultureErrorMessage[culture], localized); } private string GetLocalizedErrorMessage(string culture) From be79f200c19381e5441ab6f5b2fe6938c6dddc27 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Thu, 10 Aug 2023 16:27:18 -0700 Subject: [PATCH 19/21] Remove unused using and sorted remaining. --- .../tests/FunctionalTests/LocalizationTest.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs index 8bcd201edd..ade0566bba 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs @@ -4,15 +4,8 @@ using System; using System.Collections.Generic; -using System.Data; -using System.Data.Common; using System.Globalization; -using System.Reflection; -using System.Security; using System.Threading; -using System.Threading.Tasks; -using System.Windows.Input; -using Microsoft.SqlServer.TDS.Servers; using Xunit; namespace Microsoft.Data.SqlClient.Tests From dcc4693b486660483b3d545ad3c2538cab585c38 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Thu, 10 Aug 2023 17:07:15 -0700 Subject: [PATCH 20/21] Added if preprocessor for netcore merged code into StringsHelper.cs. Added License info to GenerateResourceStringsSource.ps1. --- src/Directory.Build.props | 4 ++-- src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs | 2 ++ .../src/tools/scripts/GenerateResourceStringsSource.ps1 | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 652f8b7bb5..82d4e9eab5 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -43,13 +43,13 @@ $(ProjectDir)Microsoft.Data.SqlClient\ $(ProjectDir)Microsoft.SqlServer.Server\ $(ManagedSourceCode)netcore\ - $(ManagedSourceCode)src\Resources\ + $(ManagedSourceCode)src\Resources\ Strings SqlClient.Resources.$(ResxFileName) $(ResxFileName).ResourceNames.cs $(ManagedSourceCode)netfx\ $(ManagedSourceCode)src\Resources\ - $(ManagedSourceCode)add-ons\ + $(ManagedSourceCode)add-ons\ $(RepoRoot)src\Microsoft.SqlServer.Server\ $(Artifacts)obj\ $(NetCoreSource)src\Common\src diff --git a/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs b/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs index 5a65b07355..3f003c081c 100644 --- a/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs +++ b/src/Microsoft.Data.SqlClient/src/Resources/StringsHelper.cs @@ -63,6 +63,7 @@ public static string GetString(string res, params object[] args) } } +#if !NETFRAMEWORK // This method is used to decide if we need to append the exception message parameters to the message when calling Strings.Format. // by default it returns false. // Native code generators can replace the value this returns based on user input at the time of native code generation. @@ -119,5 +120,6 @@ public static string Format(string resourceFormat, object p1, object p2, object return string.Format(resourceFormat, p1, p2, p3); } +#endif } } diff --git a/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 b/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 index cb98822e97..ad20400327 100644 --- a/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 +++ b/src/Microsoft.Data.SqlClient/src/tools/scripts/GenerateResourceStringsSource.ps1 @@ -1,3 +1,6 @@ +# Licensed to the .NET Foundation under one or more agreements. +# The .NET Foundation licenses this file to you under the MIT license. +# See the LICENSE file in the project root for more information. # Script: GenerateResourceStringsSource.ps1 # Author: Keerat Singh # Date: 25-Jan-2019 From 181c4bcd79afaa1be7647ffc9775c3b8c203ac63 Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Fri, 11 Aug 2023 13:29:22 -0700 Subject: [PATCH 21/21] Replaced misplaced tabs with spaces instead in Directory.Build.props. Removed a blank line in LocalizationTest.cs. --- src/Directory.Build.props | 4 ++-- .../tests/FunctionalTests/LocalizationTest.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 82d4e9eab5..b686f9fe8f 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -43,13 +43,13 @@ $(ProjectDir)Microsoft.Data.SqlClient\ $(ProjectDir)Microsoft.SqlServer.Server\ $(ManagedSourceCode)netcore\ - $(ManagedSourceCode)src\Resources\ + $(ManagedSourceCode)src\Resources\ Strings SqlClient.Resources.$(ResxFileName) $(ResxFileName).ResourceNames.cs $(ManagedSourceCode)netfx\ $(ManagedSourceCode)src\Resources\ - $(ManagedSourceCode)add-ons\ + $(ManagedSourceCode)add-ons\ $(RepoRoot)src\Microsoft.SqlServer.Server\ $(Artifacts)obj\ $(NetCoreSource)src\Common\src diff --git a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs index ade0566bba..77e7eee950 100644 --- a/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs +++ b/src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalizationTest.cs @@ -77,6 +77,5 @@ private string GetLocalizedErrorMessage(string culture) return localized; } - } }