ChangePassword()


" "

short ChangePassword(BSTR NewPassword)

Description

This function changes the password for the user ID previously specified on the InitializeServer() call.

Note:
Not all types of database servers support changing passwords. If the server specified on the InitializeServer() call does not support changing passwords, an error is returned, and the password is not changed.

Parameters

Name Description
NewPassword The new password.

Return Value

The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.