Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.47 KB

File metadata and controls

41 lines (30 loc) · 1.47 KB
title getCatalog Method (SQLServerConnection)
description getCatalog Method (SQLServerConnection)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerConnection.getCatalog
apitype Assembly

getCatalog Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

Retrieves the current catalog name of this SQLServerConnection object.

Syntax

  
public java.lang.String getCatalog()  

Return Value

A String that contains the catalog name.

Exceptions

SQLServerException

Remarks

This getCatalog method is specified by the getCatalog method in the java.sql.Connection interface.

Returns the current catalog property of the SQLServerConnection object, or null if it is not set. The catalog property is set explicitly with the setCatalog method, or is implicitly updated by reading the environment change on TDS for the current catalog.

See Also

SQLServerConnection Members
SQLServerConnection Class