Completes the asynchronous execution of a corresponding BeginExecuteReader.
Syntax
Parameters
- asyncResult
- IAsyncResult object returned from the corresponding
BeginExecuteReader
Return Value
The
TdDataReader object that is used to retrieve the data.
Exceptions
Exception | Description |
System.IndexOutOfRangeException | Can be thrown because more in-out/out parameters
have been specified than returned from the stored procedure. |
System.InvalidOperationException | Can be thrown because of one of the following:
1) EndExecuteReader was called more than once for the corresponding BeginExecuteReader,
2) EndExecuteReader does not match the call to the corresponding method used for execution.
For example, EndExecuteReader was called to end execution of a call to BeginExecuteNonQuery.
3) The command has been disposed. |
TdException | Can be thrown because of one of the following errors:
1) Teradata returned an error. 2) The Data Provider detected an error. . |
Example
Requirements
Product | Versions | Platforms |
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |
See Also