on 12-17-2008 10:00 PM
Crystal Reports 12.1.0.892
Windows XP SP3
DataDirect ODBC Driver for Paradox 5.30.00.23
Paradox 5 database
When I run the following query against two tables:
SELECT `Ticket1a`.`PatronID`, `PHONELIN`.`PhoneNumber`
FROM `PHONELIN` `PHONELIN` INNER JOIN `Ticket1a` `Ticket1a` ON `PHONELIN`.`PatronID`=`Ticket1a`.`PatronID`
I get the following error:
Failed to retrieve data from the database
Details: 42000: DataDirect ODBC Paradox driver Extra characters at end of query: INNER. Database VendorCode: 3902
The SQL tracing log can be found at http://188.grandtheater.org/sql.log
Can anyone tell me what is going on here and how I can get around it?
TIA
I think something wrong in the syntax even though it is correct the drivers shows some error at INNER.
What happens if you try using this syntax?
SELECT `Ticket1a`.`PatronID`, `PHONELIN`.`PhoneNumber`
FROM `PHONELIN` `PHONELIN` , `Ticket1a` `Ticket1a` where `PHONELIN`.`PatronID`=`Ticket1a`.`PatronID`
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the Add Command option and entered the SQL query as follows:
select ticket1a.patronid, phonelin.phonenumber
from ticket1a ticket1a inner join phonelin phonelin on ticket1a.patronid=phonelin.patronid
and still got the same error as before. Using the following SQL query:
select ticket1a.patronid, phonelin.phonenumber
from ticket1a, phonelin
where ticket1a.patronid = phonelin.patronid
I was able to get results using the DataDirect driver.
If I use the Microsoft Paradox driver (which is very slow. 15 minutes to run this query) and use the following SQL query:
select ticket1a.patronid, phonelin.phonenumber
from ticket1a ticket1a inner join phonelin phonelin on ticket1a.patronid=phonelin.patronid
I will not get the error and I will get results.
Any reasons why the DataDirect driver is producing errors?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.