| title | getConnection Method (SQLServerDataSource) |
|---|---|
| description | getConnection Method (SQLServerDataSource) |
| 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.
| Name | Description |
|---|---|
| getConnection () | Tries to establish a connection with the data source that this SQLServerDataSource object represents. |
| getConnection (java.lang.String, java.lang.String) | Tries to establish a connection with the data source that this SQLServerDataSource object represents by using the given user name and password. |