Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.47 KB

getcatalog-method-sqlserverconnection.md

File metadata and controls

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