Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAConnection class


ChangePassword method

Changes the password for the user indicated in the connection string to the supplied new password.

Visual Basic

Public Shared Sub ChangePassword( _
   ByVal connectionString As String, _
   ByVal newPassword As String _

public static void ChangePassword(
   string  connectionString,
   string  newPassword
  • connectionString   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.

  • newPassword   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.

See also