Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.39 KB

File metadata and controls

45 lines (35 loc) · 1.39 KB
title getConnection Method () | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerDataSource.getConnection ()
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 7f520e96-5313-468f-b987-535ddaea027e
author David-Engel
ms.author v-daenge

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