共用方式為


getPooledConnection Method (java.lang.String, java.lang.String)

Tries to establish a physical database connection that can be used as a pooled connection based on the given user name and password.

public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
                                                      java.lang.String password)

參數

user

A String that contains the user name.

passwword

A String that contains the password.

傳回值

A SQLServerPooledConnection object.

例外狀況

java.sql.SQLException

備註

This getPooledConnection method is specified by the getPooledConnection method in the javax.sql.ConnectionPoolDataSource interface.

另請參閱

參考

SQLServerConnectionPoolDataSource Class

概念

getPooledConnection
SQLServerConnectionPoolDataSource Methods
SQLServerConnectionPoolDataSource Members