wwmathieson
MIS
I'm using CR XI, with an ODBC connection to FoxPro. Its a File DSN with Fetch Data in Background turned off. OS is XP Pro on a machine with 1 GB of RAM.
The table structures are such that to collect the data I need, I have strung together 8 SQL statements with UNION ALL and dropped the data into appropriate alias.
The report seems to run OK with parameters that result in a smaller data set, except that some of the data is reported erroneously, with inappropriate and inconsistent rounding!
When the report is run with parameters that result in a larger data set, I get the error message "Failed to retrieve data from the database." followed by "Databse Connector Error: '01501:[Micorsoft]{ODBC Visual FoxPro Driver]Error in row'" followed by "Database Connector Error: '22003:[Microsoft][ODBC Visual FoxPro Driver]Error: Column 8 ( costtodate )'". "costtodate" is the 8th (but not the last) alias being populated by the command.
I've played with reducing the number of SQL statements unioned in the command and been able to get better data set results, but I'm not getting the data I need for the report.
I also found when originally constructing the command that there is a limit of 8 or 9 unions permitted in a command, but the present command does not warn that limit because I'm only using 7 unions....
Am I running into another limit in the use of SQL commands? Is there some environmental setting that I'm missing that will permit the command to run cleanly?
I'm a software consultant, not a programmer, but I suspect that some will suggest that I create a temp table for the report with FoxPro or Access. That's beyond my capabilities and unless its totally automatic and transparent to my client, that's not a viable solution.
Thanks in advance for your insights.
The table structures are such that to collect the data I need, I have strung together 8 SQL statements with UNION ALL and dropped the data into appropriate alias.
The report seems to run OK with parameters that result in a smaller data set, except that some of the data is reported erroneously, with inappropriate and inconsistent rounding!
When the report is run with parameters that result in a larger data set, I get the error message "Failed to retrieve data from the database." followed by "Databse Connector Error: '01501:[Micorsoft]{ODBC Visual FoxPro Driver]Error in row'" followed by "Database Connector Error: '22003:[Microsoft][ODBC Visual FoxPro Driver]Error: Column 8 ( costtodate )'". "costtodate" is the 8th (but not the last) alias being populated by the command.
I've played with reducing the number of SQL statements unioned in the command and been able to get better data set results, but I'm not getting the data I need for the report.
I also found when originally constructing the command that there is a limit of 8 or 9 unions permitted in a command, but the present command does not warn that limit because I'm only using 7 unions....
Am I running into another limit in the use of SQL commands? Is there some environmental setting that I'm missing that will permit the command to run cleanly?
I'm a software consultant, not a programmer, but I suspect that some will suggest that I create a temp table for the report with FoxPro or Access. That's beyond my capabilities and unless its totally automatic and transparent to my client, that's not a viable solution.
Thanks in advance for your insights.