A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlconnection.changepassword below:

SqlConnection.ChangePassword Method (System.Data.SqlClient) | Microsoft Learn

Source:
System.Data.SqlClient.notsupported.cs

Changes the SQL Server password for the user indicated in the SqlCredential object.

public:
 static void ChangePassword(System::String ^ connectionString, System::Data::SqlClient::SqlCredential ^ credential, System::Security::SecureString ^ newPassword);
public:
 static void ChangePassword(System::String ^ connectionString, System::Data::SqlClient::SqlCredential ^ credential, System::Security::SecureString ^ newSecurePassword);
public static void ChangePassword(string connectionString, System.Data.SqlClient.SqlCredential credential, System.Security.SecureString newPassword);
public static void ChangePassword(string connectionString, System.Data.SqlClient.SqlCredential credential, System.Security.SecureString newSecurePassword);
static member ChangePassword : string * System.Data.SqlClient.SqlCredential * System.Security.SecureString -> unit
static member ChangePassword : string * System.Data.SqlClient.SqlCredential * System.Security.SecureString -> unit
Public Shared Sub ChangePassword (connectionString As String, credential As SqlCredential, newPassword As SecureString)
Public Shared Sub ChangePassword (connectionString As String, credential As SqlCredential, newSecurePassword As SecureString)
Parameters
connectionString
String

The connection string that contains enough information to connect to a server. The connection string should not use any of the following connection string keywords: Integrated Security = true, UserId, or Password; or ContextConnection = true.

newPasswordnewSecurePassword
SecureString

The new password.newPassword must be read only. The password must also comply with any password security policy set on the server (for example, minimum length and requirements for specific characters).

Exceptions

The connection string contains any combination of UserId, Password, or Integrated Security=true.

-or-

The connection string contains Context Connection=true.

-or-

newSecurePassword (or newPassword) is greater than 128 characters.

-or-

newSecurePassword (or newPassword) is not read only.

-or-

newSecurePassword (or newPassword) is an empty string.

One of the parameters (connectionString, credential, or newSecurePassword) is null.

See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4