Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.35 KB

File metadata and controls

45 lines (35 loc) · 1.35 KB
title getColumnCount Method (SQLServerResultSetMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerResultSetMetaData.getColumnCount
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid a1fc3f50-3635-4fc5-b570-94d2c5a1873c
author David-Engel
ms.author v-daenge

getColumnCount Method (SQLServerResultSetMetaData)

[!INCLUDEDriver_JDBC_Download]

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

SQLServerResultSetMetaData Methods
SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class