Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.16 KB

File metadata and controls

36 lines (27 loc) · 1.16 KB
title getServerName Method (SQLServerDataSource)
description getServerName Method (SQLServerDataSource)
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.getServerName
apitype Assembly

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