共用方式為


getCatalog Method (SQLServerConnection)

Retrieves the current catalog name of this SQLServerConnection object.

public java.lang.String getCatalog()

傳回值

A String that contains the catalog name.

例外狀況

SQLServerException

備註

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 Class

概念

SQLServerConnection Methods
SQLServerConnection Members