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.
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:
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
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
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
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