Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.3 KB

getconnection-method.md

File metadata and controls

40 lines (30 loc) · 1.3 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
getConnection Method ()
getConnection Method ()
David-Engel
v-davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerDataSource.getConnection ()
Assembly

getConnection Method ()

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public java.sql.Connection getConnection()  

Return Value

A SQLServerConnection object.

Exceptions

java.sql.SQLException

Remarks

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

See Also

getConnection Method (SQLServerDataSource)
SQLServerDataSource Members
SQLServerDataSource Class