Send feedback on this topic.
Teradata.Client.Provider
Logon Source Format
.NET Data Provider for Teradata > Developer's Guide > Working with the Data Provider Features > Connecting To Teradata > Logon Source Format

When the .NET Data Provider for Teradata establishes a connection to the Advanced SQL Engine, a string value is composed that is stored in the Data Dictionary System Views column "LogonSource".  This column is included in system views such as DBC.SessionInfo and DBC.LogOnOff.

Note
All LogonSource values that are provided by the .NET Data Provider for Teradata and other clients are entered into the SQL Engine in uppercase.

The .NET Data Provider for Teradata follows the format documented in the Teradata Data Dictionary, section "System Views Columns Reference", for network-attached LogonSource values.

Network-attached LogonSource values have eight fields, separated by whitespace. Fields 1 through 3 are composed by the SQL Engine.  Fields 4 through 8 are composed by the .NET Data Provider for Teradata.

  1. The literal "(TCP/IP)", to indicate the connection type.
  2. TCP port number on the client system, in hexadecimal.
  3. IP address of the client system.
  4. The SQL Engine hostname, knows as the "TDPID".
  5. Client process/thread identifier.
  6. Client system user ID.
  7. Program used on the client system.
  8. The literal "01 LSS", to indicate LogonSource string version 01.

The maximum allowable size for the LogonSource is 97 characters.  The fields will be truncated or removed as needed to ensure the total length does not exceed 97 characters.

An example of a fully constructed LogonSource is as follows:

(TCP/IP) 057E 153.64.135.76 SALES:153.64.116.95:1025 3808 CORP\TDUSER TESTAPP:NET:SS:12.00.00.000 01 LSS

Fields 4 through 7 are described below:

Field 4 - SQL Engine hostname

The TDPID field is composed of:

This TDPID field is truncated to the space remaining in the 97 characters, after all the other fields are composed.

An example value for this field when the application specifies the DataSource value of "sales" is: SALES:153.64.116.95:1025

Field 5 - Client process identifier

The Client Process identifier field is composed as follows:

This field is removed if both Field 4 (SQL Engine hostname) and Field 6 (Client system User ID) have been removed and the resulting string is still longer than 97 characters.

An example value of this field is: 3808

Field 6 - Client system User ID

The Client system User ID field is composed as follows:

This field is truncated if Field 4 (SQL Engine hostname) was removed and the resulting string is still longer than 97 characters.

An example value for this field is: CORP\TDUSER

Field 7 - Program used on the client system

The program information on the client system is composed as follows:

An example value for this field is: TESTAPP:NET:SS:12.00.00.000