I had a record selection that was too complex for Crystal, so I used SQL to assemble the data I wanted. (SQL Version 8).
I still wanted to use Crystal's superior reporting features, so I added it into a Crystal report (Crystal 10).
My SQL used a series of temporary tables, and this was the thing that gave trouble. In SQL I could drop them at the end and be sure they were gone. In case of a failure half-way through I could also drop them at the start and get just a warning.
With SQL in Crystal, things were trickier. First time, it refused to run with a "DROP" at the start. But thereafter it would find a duplicate my temporary file names and I had to DROP them at the start, or else change them each time. This applied even if I closed the report or closed and re-started Crystal.
Having got this far, I then began to get a message
By closing, reopening and restarting each time it fails, I have got the report to run. But if anyone can figure what I should be doing, I'd appreciate it.
Note that this is purely a problem of SQL in Crystal. SQL as such is fine.
Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10
I still wanted to use Crystal's superior reporting features, so I added it into a Crystal report (Crystal 10).
My SQL used a series of temporary tables, and this was the thing that gave trouble. In SQL I could drop them at the end and be sure they were gone. In case of a failure half-way through I could also drop them at the start and get just a warning.
With SQL in Crystal, things were trickier. First time, it refused to run with a "DROP" at the start. But thereafter it would find a duplicate my temporary file names and I had to DROP them at the start, or else change them each time. This applied even if I closed the report or closed and re-started Crystal.
Having got this far, I then began to get a message
This would happen within the SQL when I tried to edit it. Also within the run whenever I added a new data item from the regular database.Query Engine Error 'HY007:[Microsoft][ODBC SQL Server Driver] Associated statement is not prepared
By closing, reopening and restarting each time it fails, I have got the report to run. But if anyone can figure what I should be doing, I'd appreciate it.
Note that this is purely a problem of SQL in Crystal. SQL as such is fine.
Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10