Confirming a successful failover

If a connection to the secondary ASE server is established, the ASE OLE DB Driver returns “E_FAIL” for the function return HRESULT.

To confirm a successful failover, do one of the following:

NoteSybase recommends that you check the code returned by dwMinor to determine the success of the failover rather than by examining the error description.

Then the client must then reapply the failed transaction with the new connection. If failover happens while a transaction is open, only the changes that were committed to the database before failover are retained.