When you connect to a database by selecting its database profile, InfoMaker writes the profile name and its connection parameters to the registry key HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\11.0\ DatabaseProfiles\PowerBuilder.
Each time you connect to a different database, InfoMaker overwrites the “most-recently used” profile name in the registry with the name for the new database connection.
When you start InfoMaker (with the Automatically Connect to Database system option selected) or open a painter that accesses the database, you are connected to the database you used last. InfoMaker determines which database this is by reading the registry.