getServerName Method (SQLServerDataSource)

Returns the name of the SQL Server instance.

public java.lang.String getServerName()

返回值

A String that contains the server name, or null if no value is set.

备注

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