Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.16 KB

getservername-method-sqlserverdatasource.md

File metadata and controls

36 lines (27 loc) · 1.16 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
getServerName Method (SQLServerDataSource)
getServerName Method (SQLServerDataSource)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerDataSource.getServerName
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