setFailoverPartner Method (SQLServerDataSource)
Sets the name of the failover server that is used in a database mirroring configuration.
Syntax
public void setFailoverPartner(java.lang.String serverName)
Parameters
serverName
A String that contains the failover server name.
Remarks
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.
The driver does not support specifying the port number of the failover server when the failover server name is set. However, calling the setServerName method and the setInstanceName method with the setFailoverPartner method is supported.
See Also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tokom 2024. godine postepeno ćemo ukidati probleme sa uslugom GitHub kao mehanizam povratnih informacija za sadržaj i zameniti ga novim sistemom povratnih informacija. Dodatne informacije potražite u članku:Prosledite i prikažite povratne informacije za