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



Teradata.Client.Provider Namespace > TdConnectionStringBuilder Class : AccountString Property
Identifies an individual user account, and is associated with a specific User Id. The account identifier can be up to 30 characters long.
Syntax
'Declaration
 
Public Property AccountString As String
'Usage
 
Dim instance As TdConnectionStringBuilder
Dim value As String
 
instance.AccountString = value
 
value = instance.AccountString
public string AccountString {get; set;}
public:
property String^ AccountString {
   String^ get();
   void set (    String^ value);
}
Remarks

If an invalid account string is specified, Teradata behaves differently under the following circumstances:

1) If the application specifies an invalid account string without any leading spaces, provider throws an exception when TdConnection.Open is called. The exception message returned is: [Teradata Database] Invalid logon account.

2) If the account string is not valid and there are leading spaces, TdConnection opens the connection. However, the account assigned to the user is the default account specified when the user was created in Teradata. The default account is not reflected in the provider string. The account that is not valid still appears in the connection string.

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