共用方式為


close Method (SQLServerConnection)

Releases this SQLServerConnection object's database and JDBC resources immediately instead of waiting for them to be automatically released.

public void close()

例外狀況

SQLServerException

備註

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

Calling the close method in the middle of a transaction causes the transaction to be rolled back.

另請參閱

參考

SQLServerConnection Class

概念

SQLServerConnection Methods
SQLServerConnection Members