Thanks for your reply, Chris.
I ran a trace - below is portion of the log I determined to be associated with the syntaxFromSql() call. It doesn't really give me any clues, but I don't speak whatever language this is. Maybe you or someone out there will have some amazing insight.
Next I might try the lower-level trace.
(08BD3048): PREPARE:
(08BD3048): select moniker from pending_trade where 1=2(DBI_PREPARE) (3.136 MS / 775.584 MS)
(08BD3048): DESCRIBE:(DBI_DESCRIBE) (0.021 MS / 775.605 MS)
(08BD3048): name=moniker,dsntype=char,len=7,type=CHAR,pbt=1,dbt=1,ct=0,prec=6,scale=0
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_GET_FROM_BEFORE) (0.000 MS / 775.605 MS)
(08BD3048): (DBI_VALIDATE_IDENT) (0.000 MS / 775.605 MS)
(08BD3048): GET EXTENDED ATTRIBUTES: TABLE=pending_trade OWNER=dbo(DBI_COMPLETE_TABLE_INFO) (9.980 MS / 785.585 MS)
(08BD3048): (DBI_PARSE_COLLIST) (0.000 MS / 785.585 MS)
(08BD3048): (DBI_VALIDATE_IDENT) (0.000 MS / 785.585 MS)
(08BD3048): (DBI_VALIDATE_HASH) (6.214 MS / 791.799 MS)
(08BD3048): (DBI_FORMAT_HASH) (6.370 MS / 798.169 MS)
(08BD3048): (DBI_EDITSTYLE_HASH) (6.635 MS / 804.804 MS)
(08BD3048): (DBI_DESCRIBE_OPTIMIZED) (0.000 MS / 804.804 MS)
(08BD3048): (DBI_CASE_SENSITIVE) (0.000 MS / 804.804 MS)
(08BD3048): (DBI_DW_COL_DICT) (6.566 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_TERMINATOR) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_GET_FROM_BEFORE) (0.000 MS / 811.370 MS)
(08BD3048): (DBI_VALIDATE_IDENT) (0.000 MS / 811.370 MS)
(08BD3048): UNIQUE KEY CHECK: TABLE=pending_trade OWNER=dbo USER=dbo(DBI_UNIQUE_KEY) (11.892 MS / 823.262 MS)
(08BD3048): YES, unique key found
Thanks for your reply. There is no problem using the native driver. Unfortunately, we are transitioning from using the native to ODBC, so I'm kind of stuck with it.
I'm finding it challenging to get information on preferred settings for PB/ODBC. Any help is appreciated!
Thanks,
Russell
I do not know exactly why the ODBC connectivity is giving you this problem as I don;t normally use middle-ware to connect to any DBMS if I can help it (just personal preference)./ However, I wonder if it might be worthwhile running an low level SQL trace to see if that might illuminate something ...
SQLCA.DBMS = "TRACE ODBC" // or
SQLCA.DBMS = "TRACE ASE"
Note: You can also run a low-level SQL trace from the ODBC driver as well via a setting in the ODBC Admin utility.
Food for thought