Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SADataReader class


GetString method

Returns the value of the specified column as a string.

Visual Basic

Public Overrides Function GetString( _
   ByVal ordinal As Integer _
) As String

public override string  GetString(
   int ordinal
  • ordinal¬†¬† An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return value

The value of the specified column.


No conversions are performed, so the data retrieved must already be a string.

Call the SADataReader.IsDBNull method to check for NULL values before calling this method.

See also