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



Teradata.Client.Provider Namespace > TdDataReader Class : GetInt64 Method
Column ordinal (see TdDataReader.GetOrdinal).
Gets the value of the specified field (column) as an Int64.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetInt64( _
   ByVal ordinal As Integer _
) As Long
'Usage
 
Dim instance As TdDataReader
Dim ordinal As Integer
Dim value As Long
 
value = instance.GetInt64(ordinal)
public override long GetInt64( 
   int ordinal
)
public:
int64 GetInt64( 
   int ordinal
) override 

Parameters

ordinal
Column ordinal (see TdDataReader.GetOrdinal).

Return Value

Returns the value of the specified field represented as a System.Int64 type.
Exceptions
ExceptionDescription
ordinal is less than zero or ordinal is equal to or greater than TdDataReader.FieldCount.
The field cannot be converted into System.Int64. A null field will result in an exception.
Conversion overflow. For example Teradata DECIMAL(38) might result in Overflow when converted to Decimal.
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.
The Advanced SQL Engine returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
The .NET Data Provider for Teradata uses the .NET Framework class libraries to convert the underlying field to a System.Int64.

The Advanced SQL Engine does not have direct support for an eight-byte singed integer. The closest Teradata data type is DECIMAL(18,0).

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