A read-only, forward-only result set from a query or stored procedure.
Public NotInheritable Class SADataReader Inherits System.Data.Common.DbDataReader Implements System.ComponentModel.IListSource
public sealed class SADataReader : System.Data.Common.DbDataReader, System.ComponentModel.IListSource
All members of SADataReader class, including all inherited members.
Name | Description |
---|---|
Closes the SADataReader. | |
Dispose method (Inherited from System.Data.Common.DbDataReader) |
Releases all resources used by the current instance of the System.Data.Common.DbDataReader class. |
Returns the value of the specified column as a Boolean. | |
Returns the value of the specified column as a Byte. | |
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset. | |
Returns the value of the specified column as a character. | |
Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset. | |
This method is not supported. | |
Returns the name of the source data type. | |
Returns the value of the specified column as a DateTime object. | |
Returns the value of the specified column as a DateTimeOffset object. | |
GetDbDataReader method (Inherited from System.Data.Common.DbDataReader) |
Returns a System.Data.Common.DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation. |
Returns the value of the specified column as a Decimal object. | |
Returns the value of the specified column as a double-precision floating-point number. | |
Returns a System.Collections.IEnumerator that iterates through the SADataReader object. | |
Returns the Type that is the data type of the object. | |
Returns the value of the specified column as a single-precision floating-point number. | |
Returns the value of the specified column as a global unique identifier (GUID). | |
Returns the value of the specified column as a 16-bit signed integer. | |
Returns the value of the specified column as a 32-bit signed integer. | |
Returns the value of the specified column as a 64-bit signed integer. | |
Returns the name of the specified column. | |
Returns the column ordinal, given the column name. | |
GetProviderSpecificFieldType method (Inherited from System.Data.Common.DbDataReader) |
Returns the provider-specific field type of the specified column. |
GetProviderSpecificValue method (Inherited from System.Data.Common.DbDataReader) |
Gets the value of the specified column as an instance of System.Object. |
GetProviderSpecificValues method (Inherited from System.Data.Common.DbDataReader) |
Gets all provider-specific attribute columns in the collection for the current row. |
Returns a DataTable that describes the column metadata of the SADataReader. | |
Returns the value of the specified column as a string. | |
Returns the value of the specified column as a TimeSpan object. | |
Returns the value of the specified column as a 16-bit unsigned integer. | |
Returns the value of the specified column as a 32-bit unsigned integer. | |
Returns the value of the specified column as a 64-bit unsigned integer. | |
Returns the value of the specified column as an Object. | |
Gets all the columns in the current row. | |
Returns a value indicating whether the column contains NULL values. | |
Frees the resources associated with the object. | |
Advances the SADataReader to the next result, when reading the results of batch SQL statements. | |
Reads the next row of the result set and moves the SADataReader to that row. | |
Gets a value indicating the depth of nesting for the current row. | |
Gets the number of columns in the result set. | |
Gets a value that indicates whether the SADataReader contains one or more rows. | |
Gets a values that indicates whether the SADataReader is closed. | |
The number of rows changed, inserted, or deleted by execution of the SQL statement. | |
Returns the value of a column in its native format. | |
VisibleFieldCount property (Inherited from System.Data.Common.DbDataReader) |
Gets the number of fields in the System.Data.Common.DbDataReader that are not hidden. |
There is no constructor for SADataReader. To get an SADataReader object, execute an SACommand:
SACommand cmd = new SACommand( "SELECT EmployeeID FROM Employees", conn ); SADataReader reader = cmd.ExecuteReader(); |
You can only move forward through an SADataReader. If you need a more flexible object to manipulate results, use an SADataAdapter.
The SADataReader retrieves rows as needed, whereas the SADataAdapter must retrieve all rows of a result set before you can carry out any action on the object. For large result sets, this difference gives the SADataReader a much faster response time.
Implements: IDataReader, IDisposable, IDataRecord, IListSource
For more information, see Data access and manipulation.
Close method
GetBoolean method
GetByte method
GetBytes method
GetChar method
GetChars method
GetData method
GetDataTypeName method
GetDateTime method
GetDateTimeOffset method
GetDecimal method
GetDouble method
GetEnumerator method
GetFieldType method
GetFloat method
GetGuid method
GetInt16 method
GetInt32 method
GetInt64 method
GetName method
GetOrdinal method
GetSchemaTable method
GetString method
GetTimeSpan method
GetUInt16 method
GetUInt32 method
GetUInt64 method
GetValue method
GetValues method
IsDBNull method
myDispose method
NextResult method
Read method
Depth property
FieldCount property
HasRows property
IsClosed property
RecordsAffected property
this property
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |