共用方式為


getConnection Method ()

Tries to establish a connection with the data source that this SQLServerDataSource object represents.

public java.sql.Connection getConnection()

傳回值

A SQLServerConnection object.

例外狀況

java.sql.SQLException

備註

This getConnection method is specified by the getConnection method in the javax.sql.DataSource interface.

另請參閱

參考

SQLServerDataSource Class

概念

getConnection Method (SQLServerDataSource)
SQLServerDataSource Methods
SQLServerDataSource Members