SqlDataReader.GetDataTypeName(Int32) Method

Definition

Gets a string representing the data type of the specified column.

public:
 override System::String ^ GetDataTypeName(int i);
public:
 virtual System::String ^ GetDataTypeName(int i);
public override string GetDataTypeName (int i);
public string GetDataTypeName (int i);
override this.GetDataTypeName : int -> string
abstract member GetDataTypeName : int -> string
override this.GetDataTypeName : int -> string
Public Overrides Function GetDataTypeName (i As Integer) As String
Public Function GetDataTypeName (i As Integer) As String

Parameters

i
Int32

The zero-based ordinal position of the column to find.

Returns

The string representing the data type of the specified column.

Implements

Remarks

Returns the name of the back-end data type.

numeric is a synonym in SQL Server for the decimal data type. GetDataTypeName will return "decimal" for a column defined as either decimal or numeric.

Applies to

See also