Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.41 KB

File metadata and controls

45 lines (35 loc) · 1.41 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 David-Engel
ms.author v-daenge

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