SqlDataReader.GetDataTypeName(Int32) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> stringabstract member GetDataTypeName : int -> string
override this.GetDataTypeName : int -> stringPublic Overrides Function GetDataTypeName (i As Integer) As StringPublic Function GetDataTypeName (i As Integer) As StringParameters
- 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.