Send feedback on this topic.
Teradata.Client.Provider
Read Method (TdDataReader)



Teradata.Client.Provider Namespace > TdDataReader Class : Read Method
Advances the data reader to the next record / row.
Syntax
'Declaration
 
Public Overrides NotOverridable Function Read() As Boolean
'Usage
 
Dim instance As TdDataReader
Dim value As Boolean
 
value = instance.Read()
public override bool Read()
public:
bool Read(); override 

Return Value

Returns true if the reader is advanced to the next record. Returns false if the end of the result set is reached.
Exceptions
ExceptionDescription
The TdDataReader is closed.
The Advanced SQL Engine returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
TdDataReader is conceptually a static forward-only cursor. Read method advances the current position by one record. When data reader is first created, or when NextResult method is called, the current position is set prior to the first record. Therefore, you must call Read method to get access to the first record and subsequent records. This maintains consistent semantics throughout the interface at all times.
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