Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.22 KB

getworkstationid-method-sqlserverdatasource.md

File metadata and controls

36 lines (27 loc) · 1.22 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
getWorkstationID Method (SQLServerDataSource)
getWorkstationID Method (SQLServerDataSource)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerDataSource.getWorkstationID
Assembly

getWorkstationID Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public java.lang.String getWorkstationID()  

Return Value

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