Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.3 KB

File metadata and controls

41 lines (31 loc) · 1.3 KB
title getConnection Method ()
description getConnection Method ()
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerDataSource.getConnection ()
apitype 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