What happens when you connect

Connection parameters

When you connect to a database by selecting its database profile, PowerBuilder writes the profile name and its connection parameters to the registry key HKEY_CURRENT_USER\Software\Sybase\PowerBuilder\10.5\ DatabaseProfiles\PowerBuilder.

Each time you connect to a different database, PowerBuilder overwrites the “most-recently used” profile name in the registry with the name for the new database connection.

What you get connected to

When you open a painter that accesses the database, you are connected to the database you used last. PowerBuilder determines which database this is by reading the registry.