Share via


AdomdDataReader.GetOrdinal Method

Returns the ordinal position of the specified column.

Namespace: Microsoft.AnalysisServices.AdomdServer
Assembly: msmgdsrv (in msmgdsrv.dll)

Syntax

'Declaration
Public Function GetOrdinal ( _
     As String _
) As Integer
public int GetOrdinal (
    string 
)
public:
virtual int GetOrdinal (
    String^ 
) sealed
public final int GetOrdinal (
    String 
)
public final function GetOrdinal (
     : String
) : int

Parameters

Return Value

An Integer that contains the ordinal position of the specified column.

Remarks

GetOrdinal performs a case-insensitive lookup.

GetOrdinal is kana-width insensitive.

Because ordinal-based lookups are more efficient than named lookups, it is inefficient to call GetOrdinal within a loop. Save time by calling GetOrdinal once and assigning the results to an integer variable for use within the loop.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

AdomdDataReader Class
AdomdDataReader Members
Microsoft.AnalysisServices.AdomdServer Namespace