When running the following code in RPC in an existing (working) script, I have 2 problems
set_odbc_connect_options:
rc = odbcsetconnectopt('TXN', 'UNCOMMIT')
IF rc <> '' THEN
SAY 'TXN, UNCOMMIT 'rc
rc = odbcsetconnectopt('TRACE', 1)
IF rc <> '' THEN
SAY 'TRACE, 1 'rc
rc = odbcsetconnectopt('TRACEFILE', "c:\temp\misi01_sql.log")
IF rc <> '' THEN
SAY "TRACEFILE, c:\temp\misi01_sql.log "rc
rc = odbcgetconnectopt('TRACEFILE', my_tracefile)
RETURN 0
The first problem is that RPC crashes on the odbcgetconnectopt call. If I remove that, the calls above seem correct, but I never see any ODBC trace in the file specified (in fact, I don't see the file either) |