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 server that you want. The connection
string may contain the user ID and the current password.
The new password to set. This password must comply with any password security policy set on the server, including minimum
length, requirements for specific characters, and so on.
Either the connectionString or the newPassword parameter is null.
The connection string includes the option to use integrated security.