PowerBuilder connects to your database when you:
Open a painter that accesses the database
Compile or save a PowerBuilder script containing embedded SQL statements (such as a CONNECT statement)
Execute an application that accesses the database
Invoke a DataWindow control function that accesses the database while executing an application
PowerBuilder connects to the database you used last when you open a painter that accesses the database. PowerBuilder determines which database you used last by reading a setting in the registry.
This book describes how to connect to your database when you are working in the PowerBuilder development environment.
For instructions on connecting to a database in a PowerBuilder application, see Application Techniques.