getCatalog Method (SQLServerConnection)
Collapse the table of content
Expand the table of content

getCatalog Method (SQLServerConnection)


DownloadDownload JDBC Driver

Retrieves the current catalog name of this SQLServerConnection object.

public java.lang.String getCatalog()  

A String that contains the catalog name.


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.

SQLServerConnection Members
SQLServerConnection Class

Community Additions

© 2016 Microsoft