Send feedback on this topic.
Teradata.Client.Provider
GetDataTypeName Method



Teradata.Client.Provider Namespace > TdDataReader Class : GetDataTypeName Method
Column ordinal (see TdDataReader.GetOrdinal).
Gets the name of the Teradata data type for the specified column.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetDataTypeName( _
   ByVal ordinal As Integer _
) As String
'Usage
 
Dim instance As TdDataReader
Dim ordinal As Integer
Dim value As String
 
value = instance.GetDataTypeName(ordinal)
public override string GetDataTypeName( 
   int ordinal
)
public:
String^ GetDataTypeName( 
   int ordinal
) override 

Parameters

ordinal
Column ordinal (see TdDataReader.GetOrdinal).

Return Value

Returns the name of the Teradata data type.
Exceptions
ExceptionDescription
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
Remarks
Use GetDataTypeName to retrieve the Teradata data type name. TdType section in this manual lists the Teradata type names.
Requirements

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

See Also

Reference

TdDataReader Class
TdDataReader Members