Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.37 KB

File metadata and controls

43 lines (33 loc) · 1.37 KB
title setServerName 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.setServerName
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 70920828-eda0-4064-be9f-c1e460db8f00
author David-Engel
ms.author v-daenge

setServerName Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Sets the name of the computer that is running [!INCLUDEssNoVersion].

Syntax

  
public void setServerName(java.lang.String serverName)  

Parameters

serverName

A String that contains the server name.

Remarks

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

See Also

SQLServerDataSource Members
SQLServerDataSource Class