Hi again,
You can tell I'm really just getting into DAI ... as I've only just started investigating the use of dynamic joins and dynamic SQL views ... and unfortunately I'm having problems with both.
Symptom in both cases is that all goes fine during the design phase, but the ODBC driver returns errors when any other use is attempted. It isn't yet clear to me whether my problems lie with DAI or the Ingres driver ... although I suspect a bit of both ... as symptoms differ with target database. Anyway, I'll restrict the problem outline here to just the latest database release.
Dynamic Join
Symptom is that all goes fine during the design phase, but the ODBC driver returns an error when any other use is attempted. The first attachment (1 - Join design) shows a join description and data retrieved when it is executed. The second image (2 - Join error) shows the error returned when a browse is attempted using the join. On the face of it this looks like a deficiency with the database ... but in that case I'm puzzled at why the designed join executes OK?
Dynamic SQL view
The problem here appears to be with the database server ODBC interface, as when targeting the latest release, a dynamic SQL view works OK in both design and general usage. I'll investigate further before requesting help on this issue.
This means that, at least on any late release databases (unfortunately only 1 out of 4 ), I can use a view in place of a join ... but the others may have to be left with very basic designs until I can get them upgraded ... which could take some time!! Not very happy ...
So the main question from above is should a dynamic join behave identically when in design mode and general use ... or is there a subtle difference. If there is a difference ... then I expect it has hit upon a database deficiency ... otherwise there could be a problem in the DAI coding.
Any advice would be appreciated.
Regards,
Greg Shearer