Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.25 KB

File metadata and controls

38 lines (28 loc) · 1.25 KB
title setWorkstationID Method (SQLServerDataSource)
description setWorkstationID 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.setWorkstationID
apitype Assembly

setWorkstationID Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Sets the name of the client computer name that is used to connect to the data source.

Syntax

  
public void setWorkstationID(java.lang.String workstationID)  

Parameters

workstationID

A String that contains the client computer name.

Remarks

The workstationID is the name of the client computer or workstation. If the workstationID property is not set, the default value is constructed by calling InetAddress.getLocalHost().getHostName() method. If getHostName returns a blank value, the getHostAddress().toString() method is called.

See Also

SQLServerDataSource Members
SQLServerDataSource Class