Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing data in Oracle

Status
Not open for further replies.

cubi

IS-IT--Management
Sep 20, 2001
32
US
Hi,

I get the following error in my application:

Error Diagnostic Information
ODBC Error Code = S1000 (General error)


[Oracle][ODBC][Ora]ORA-00923: FROM keyword not found where expected

SQL = "SELECT DISTINCTROW Agency_grp.Agency_grp_id, Agency_grp.Agency_grp_name
FROM Program , Agency_grp, Activity, Agency, User_agency_grp
WHERE Agency_grp.Active_status='A' AND User_agency_grp.agency_grp_id=Agency_grp.Agency_grp_id AND User_agency_grp.Username='lhoang' AND User_agency_grp.Active_status='A' ORDER BY Agency_grp.Agency_grp_id;"

Data Source = "BDPMRS"

The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (2:1) to (2:59) in the template file C:\INETPUB\
I just converted my database from Access 97 to Oracle. The above query worked fine in the Access database. Do I need to modify it to read data from Oracle?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top