Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.27 KB

File metadata and controls

41 lines (32 loc) · 1.27 KB
title getServerName Method (SQLServerDataSource) | 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.getServerName
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 3004ed22-5d69-4dd0-8761-d39f0b7dde13
author David-Engel
ms.author v-daenge

getServerName Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns the name of the [!INCLUDEssNoVersion] instance.

Syntax

  
public java.lang.String getServerName()  

Return Value

A String that contains the server name or null if no value is set.

Remarks

The server name is the host name of the target computer that is running [!INCLUDEssNoVersion]. If the getServerName property is not set, getServerName returns the default value of null.

See Also

SQLServerDataSource Members
SQLServerDataSource Class