Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 14 JAN 2003 01:10:42PM Peter Ashby wrote:

In attempting to test the odbc driver with Crystal Reports Advanced version 9 we get the following:

Failed to Open Rowset

details: 42000:Revelation Software IncRevelation ODBC Driver SQLPrepare Syntax Error

We see the table and the dictionary items fine so that implies the driver is configured properly and oengine loads.

The sql request that is generated is as follows and appears to be valid:

SELECT "COMPANY"."ID", "COMPANY"."STARTUP_MENU", "COMPANY"."NAME",

"COMPANY"."PARENT_ID"

FROM "COMPANY" "COMPANY"

We can use the odbc driver from Access 2002 to the same table and get all rows returned (all 2 rows so this is not a lot of data we are testing with.

Any suggestions?

OI 4.1.2

W2k Pro sp2


At 14 JAN 2003 02:13PM Karl Pozmann wrote:

Make sure the dictionary entries on the OI side are

VARCHAR(255)

Or less than 255….


At 14 JAN 2003 02:33PM Peter Ashby wrote:

All are Varchar(25) or less. Only 7 dict items. Small test file. Any other things to look at? Thanks.


At 14 JAN 2003 03:28PM Karl Pozmann wrote:

From VB, we would use

SELECT ID, STARTUP_MENU, NAME, PARENT_ID FROM COMPANY

We have verified ID is not a reserved word.

Under Control Panel-Administrative Tools-ODBC Source there is an option to start a log, SQL.LOG which may be of use.


At 14 JAN 2003 05:10PM Peter Ashby wrote:

The answer is that you must enter the SQL command manually into Crystal and not let it build the statement -

This does not work (built by Crystal using wizard)

SELECT "COMPANY"."ID", "COMPANY"."NAME", "COMPANY"."PARENT_ID" FROM "COMPANY" "COMPANY"

This does word as a manual command

SELECT ID, NAME, PARENT_ID FROM COMPANY

Thanks for the assistance


At 14 JAN 2003 05:40PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Peter

SELECT COMPANY.ID, COMPANY.NAME, COMPANY.PARENT_ID FROM COMPANY

should also work. I must admit to being unfamiliar with the multiple quote syntax!

The Sprezzatura Group

World Leaders in all things RevSoft

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/07faf42049e7e69c85256cae0063db9e.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1