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

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 1.0 API Reference » ULDataReader class

GetInt64 method Next Page

GetName method

Returns the name of the specified column.


Visual Basic

NotOverridable Public Function GetName( _
ByVal columnID As Integer _
) As String _
Implements IDataRecord.GetName


public string GetName(
int columnID

Return value

The name of the column or a null reference (Nothing in Visual Basic) if the column has no name. If the column is aliased in the SQL query, the alias is returned.


Note that in result sets, not all columns have names and not all column names are unique. If you are not using aliases, the name of a non-computed column is prefixed with the name of the table the column is from. For example, MyTable.ID is the name of the only column in the result set for the query "SELECT ID FROM MyTable".

This method is identical to the ULCursorSchema.GetColumnName method.


[external link] IDataRecord.GetName

See also