Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Stopping JDBC Driver Manager Trace in a PowerBuilder application – PB Docs 2019 – PowerBuilder Library

Stopping JDBC Driver Manager Trace in a PowerBuilder application – PB Docs 2019

Stopping JDBC Driver Manager Trace in a PowerBuilder
application

To stop JDBC Driver Manager Trace in a PowerBuilder application
script, you must delete the TraceFile parameter. You can do this
by:

  • Editing the value of the DBParm property of the Transaction
    object

  • Reading the DBParm values from an external text file

Editing the DBParm
property

One way to change the TraceFile parameter in a
PowerBuilder script is to edit the DBParm property of the Transaction
object.

To stop JDBC Driver Manager Trace by editing the DBParm
property:

  • In your application script, edit the DBParm property of the
    Transaction object to delete the TraceFile parameter.

    For example, the following statement starts JDBC Driver
    Manager Trace in your application and sends the output to a file
    named MYTRACE.LOG. (This example assumes you are using the default
    Transaction object SQLCA, but you can also define your own
    Transaction object.)

    Here is how the same statement should look after you edit it
    to stop JDBC Driver Manager Trace.

Reading DBParm values

As an alternative to editing the DBParm property in your
PowerBuilder application script, you can use the PowerScript
ProfileString function to read DBParm values from a specified section
of an external text file, such as an application-specific
initialization file, or you can use RegistryGet to obtain values from
a registry key.

This assumes that the DBParm is no longer read from your
initialization file or registry key, as shown in the preceding
example. You must disconnect and reconnect for this to take
effect.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x