Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Changes the password for the user indicated in the connection string to the supplied new password.
Public Shared Sub ChangePassword(
ByVal connectionString As String,
ByVal newPassword As String
public static void ChangePassword(
The connection string that contains enough information to connect to the database that you want. The connection string
may contain the user ID and the current password.
The new password to set.
Either the connectionString or the newPassword parameter is null.
The connection string includes the option to use integrated security.
A SQL error occurred while attempting to open the database.