In a PowerBuilder application that connects to a database, you must specify the required connection parameters in the appropriate script. For example, you might specify them in the script that opens the application.
To trace a database connection in a PowerBuilder script, you specify the name of the DBMS preceded by the word trace and a single space. You can do this by:
Copying the PowerScript DBMS trace syntax from the Preview tab in the Database Profile Setup dialog box into your script
Coding PowerScript to set a value for the DBMS property of the Transaction object
Reading the DBMS value from an external text file
For more about using Transaction objects to communicate with a database in a PowerBuilder application, see Application Techniques.