SQL Anywhere

1.  Attempt a connection using the parameters as passed in.

2.  If DBTC = Y, attempt a trusted connection.

3.  Attempt Logging on using the User ID and Password supplied, if any. This is for backward compatibility.

4.  Connect just using the DSN. This presumes that the ODBC DSN contains all the connection information required.

5.  Attempt to connect using DBA/SQL. This will be the most common connection made with new installations.

6.  If it's an Imported table, prompt the user repeatedly until a connection is successfully made or the dialog is cancelled. (This applies only to interactive LANSA processes running on Microsoft Windows.)

7.  Fatal error.