SqlDataReader.GetDataTypeName(Int32) Method

Definition

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

public:
 virtual System::String ^ GetDataTypeName(int i);
public string GetDataTypeName (int i);
abstract member GetDataTypeName : int -> string
override this.GetDataTypeName : int -> 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