Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlDataReader::GetDataTypeName Method (Int32)

 

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

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public:
virtual String^ GetDataTypeName(
	int i
) override

Parameters

i
Type: System::Int32

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

Return Value

Type: System::String^

The string representing the data type of the specified column.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft