Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

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)


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.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft