Has anyone managed to make it running?
I have this code, tried but doesn’t build the structure when prop:sqlrowset is used, but no errorcode or fileerrorcode
MyDynamicFile &= NEW(FILE)
MyDynamicFile{PROP:Driver} = 'ODBC'
MyDynamicFile{PROP:DriverString} = '\TURBOSQL=TRUE'
MyDynamicFile{PROP:Owner} = GLO:SQLConnectString
OPEN(MyDynamicFile)
IF SUB(CLIP(LEFT(p_SQLQuery)),1,4) = 'WITH'
MyDynamicFile{PROP:SQLRowSet} = p_SQLQuery
ELSE
MyDynamicFile{PROP:SQL} = p_SQLQuery
END
FIXFORMAT(MyDynamicFile)
!map columns
DO DeepAssignColumns
Kind Regards,
Christian