Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.26 KB

File metadata and controls

40 lines (30 loc) · 1.26 KB
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

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