Share via


getColumnCount Method (SQLServerResultSetMetaData)

Returns the number of columns in the result set.

Syntax

public int getColumnCount()

Return Value

An int that indicates the number of columns.

Exceptions

SQLServerException

Remarks

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

See Also

Reference

SQLServerResultSetMetaData Class

Concepts

SQLServerResultSetMetaData Methods

SQLServerResultSetMetaData Members