setWorkstationID Method (SQLServerDataSource)

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

public void setWorkstationID(java.lang.String workstationID)

参数

workstationID

A String that contains the client computer name.

备注

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.

另请参见

参考

SQLServerDataSource Class

概念

SQLServerDataSource Methods
SQLServerDataSource Members