Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.55 KB

File metadata and controls

53 lines (43 loc) · 1.55 KB
title getDatabaseMajorVersion Method (SQLServerDatabaseMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service drivers
ms.service
ms.component jdbc
ms.reviewer
ms.suite sql
ms.technology
drivers
ms.tgt_pltfrm
ms.topic article
apiname
SQLServerDatabaseMetaData.getDatabaseMajorVersion
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 30860c07-e84b-428a-922a-ba63c070cd9c
caps.latest.revision 7
author MightyPen
ms.author genemi
manager craigg
ms.workload Inactive

getDatabaseMajorVersion Method (SQLServerDatabaseMetaData)

[!INCLUDEDriver_JDBC_Download]

Retrieves the major version number of the underlying database.

Syntax

  
public int getDatabaseMajorVersion()  

Return Value

An int that indicates the database major version.

Exceptions

SQLServerException

Remarks

This getDatabaseMajorVersion method is specified by the getDatabaseMajorVersion method in the java.sql.DatabaseMetaData interface.

See Also

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class