Send feedback on this topic.
Teradata.Client.Provider
NewPassword Property



Teradata.Client.Provider Namespace > TdConnectionStringBuilder Class : NewPassword Property
Gets or sets a string that contains a new password to be supplied during logons that contain expired passwords.
Syntax
'Declaration
 
Public Property NewPassword As String
'Usage
 
Dim instance As TdConnectionStringBuilder
Dim value As String
 
instance.NewPassword = value
 
value = instance.NewPassword
public string NewPassword {get; set;}
public:
property String^ NewPassword {
   String^ get();
   void set (    String^ value);
}
Remarks

When the .NET Data Provider for Teradata detects that the original password has expired, it does the following:

  1. Logs into the Advanced SQL Engine using the original password.
  2. Detects that the original password has expired.
  3. Resets the password using the New Password.
  4. Logs off.
  5. Logs back into the Advanced SQL Engine using the New Password.
  6. Generates an TdConnection.InfoMessage event indicating that password was changed.

When the Data Provider detects that the original password is invalid, it does the following:

  1. Logs into the Advanced SQL Engine using the New Password.
  2. Generates an InfoMessage event indicating that old password is invalid and the New Password is used.

If the connection string does not specify a New Password and the original password expires, TdConnection.Open method generates an InfoMessage event with the following message: [Teradata Database] Password has expired, please use MODIFY USER statement to generate a new password

Default Value: Empty string

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdConnectionStringBuilder Class
TdConnectionStringBuilder Members