Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PBTrace DBParm value does not affect tracing

$
0
0

Hello, all

There seems to be a discrepancy with the PB Help on the bevior of PBTrace flag in the sqlca.DBParm

 

sqlca.DBMS ="TRACE ODBC"
sqlca.dbParm += "; PBTrace=0;CON=GlobCon'"

 

But the connection is stil tracing, even though the flag is set to "0".

This is from the PB Help (am I reading it wrong?):

//--------------------------

Starting a trace in PowerScript with the PBTrace parameter

 

Instead of tracing all database commands from the start of a database
connection, you can start and end a trace programmatically for specific database
queries. To start a trace, you can assign the string value pair "PBTrace=1" to
the transaction object DBParm property; to end a trace, you assign the string
value pair "PBTrace=0".

 

For example, if you wanted data to be logged to the trace output for a single
retrieve command, you could disable tracing from the start of the connection and
then surround the retrieve call with DBParm property assignments as follows:

SQLCA.DBMS = "TRACE ODBC"
SQLCA.DBParm="PBTrace=0"
Connect using SQLCA;
...
SQLCA.DBParm="PBTrace=1"
dw_1.Retrieve ( )
SQLCA.DBParm="PBTrace=0"

//---------------------------


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>