Use the Adaptive Server Driver Manager or the Sybase iAnywhere ODBC Driver Manager to enable connection failover.
If you are directly linking to the Adaptive Server ODBC Driver or the Sybase iAnywhere ODBC Driver Manager, modify the odbc.ini file to add the alternate servers.
ODBC Data Source UserID=sa Password= Driver=Adaptive Server Enterprise Server=sampleserver Port=4100 Database=pubs2 UseCursor=1 HASession=1 AlternateServers=server2:port2,server3:port3;