Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.42 KB

File metadata and controls

46 lines (36 loc) · 1.42 KB
title getDatabaseMajorVersion Method (SQLServerDatabaseMetaData) | 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
SQLServerDatabaseMetaData.getDatabaseMajorVersion
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 30860c07-e84b-428a-922a-ba63c070cd9c
author MightyPen
ms.author genemi
manager jroth

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