setServerName Method (SQLServerDataSource)

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

public void setServerName(java.lang.String serverName)

参数

serverName

A String that contains the server name.

备注

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.

另请参见

参考

SQLServerDataSource Class

概念

SQLServerDataSource Methods
SQLServerDataSource Members