getColumnType Method (SQLServerResultSetMetaData)

Download JDBC driver

Retrieves the SQL type of the designated column.

Syntax

  
public int getColumnType(int column)  

Parameters

column

An int that indicates the column index.

Return Value

An int that indicates the JDBC type as defined in java.sql.Types.

Exceptions

SQLServerException

Remarks

This getColumnType method is specified by the getColumnType method in the java.sql.ResultSetMetaData interface.

Microsoft SQL Server JDBC Driver 3.0 has behavior changes in the DATA_TYPE column. See SQLServerDatabaseMetaData.getColumns for more information.

See Also

SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class