Bagikan melalui


TraceReader.GetOrdinal Method

Gets the ordinal value of the data value at the specified column position.

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntax

'Declaration
Public Function GetOrdinal ( _
    name As String _
) As Integer
'Usage
Dim instance As TraceReader 
Dim name As String 
Dim returnValue As Integer 

returnValue = instance.GetOrdinal(name)
public int GetOrdinal(
    string name
)
public:
virtual int GetOrdinal(
    String^ name
) sealed
abstract GetOrdinal : 
        name:string -> int  
override GetOrdinal : 
        name:string -> int
public final function GetOrdinal(
    name : String
) : int

Parameters

Return Value

Type: System.Int32
An Int32 value that specifies the ordinal value at the specified column position.

Implements

IDataRecord.GetOrdinal(String)

Examples

Readme_Tracer

See Also

Reference

TraceReader Class

Microsoft.SqlServer.Management.Trace Namespace

Other Resources

Trace Flags (Transact-SQL)

SQL Server Profiler Templates and Permissions