| title | getConnection Method () |
|---|---|
| description | getConnection Method () |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerDataSource.getConnection () |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
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.
getConnection Method (SQLServerDataSource)
SQLServerDataSource Members
SQLServerDataSource Class