Share via


setFailoverPartner Method (SQLServerDataSource)

Sets the name of the failover server that is used in a database mirroring configuration.

public void setFailoverPartner(java.lang.String serverName)

매개 변수

serverName

A String that contains the failover server name.

주의

The value set by this method is used in the case of an initial connection failure to the principal server; after the initial connection is made, this value is ignored. The setDatabaseName method should also be used in conjunction with this method or an exception will be thrown.

참고 항목

참조

SQLServerDataSource Class

개념

SQLServerDataSource Methods
SQLServerDataSource Members