setServerName Method (SQLServerDataSource)

Download JDBC driver

Sets the name of the computer that is running SQL Server.

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 SQL Server. If the serverName property is not set, getServerName returns the default value of null.

See Also

SQLServerDataSource Members
SQLServerDataSource Class