Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.76 KB

File metadata and controls

51 lines (38 loc) · 1.76 KB
title getColumnDisplaySize 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.getColumnDisplaySize
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 21c25443-bd2b-4b60-9798-4efe2c158952
author David-Engel
ms.author v-daenge

getColumnDisplaySize Method (SQLServerResultSetMetaData)

[!INCLUDEDriver_JDBC_Download]

Returns the normal maximum width, in characters, for the designated column.

Syntax

  
public int getColumnDisplaySize(int column)  

Parameters

column

An int that indicates the column index.

Return Value

An int that indicates the maximum width. If the width is not known, returns 0.

Exceptions

SQLServerException

Remarks

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

[!INCLUDEmsCoName] [!INCLUDEssNoVersion] JDBC Driver 3.0 has behavior changes in the COLUMN_SIZE column. See SQLServerDatabaseMetaData.getColumns for more information.

See Also

SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class