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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Error Message

Status
Not open for further replies.

rbyrne1

MIS
Joined
Jun 12, 2008
Messages
7
Location
US
I am using VB.2005 to access a Pervasive SQL 9.5 database and I'm getting the following error:


ERROR [42S02] [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager]No such table or object.
ERROR [HY000] [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Unable to open table: ITEM.


My SQL statement is as follows:

SELECT ITMDESCR.Description1, ITMDESCR.Description2, item.vendorsitemnum,ITEM.Description, VENDOR.Name
FROM {oj (ITEM INNER JOIN VENDOR ON ITEM.VendorNum=VENDOR.VendorNum) LEFT OUTER JOIN ITMDESCR ON ITEM.ItemNum=ITMDESCR.ItemNum}


This SQL statement runs fine when I run it on the Pervasive Control Center. Any ideas???
 
UH - NEVERMIND!!!

Silly me. I was connecting to the wrong database :)

Sure wish you could retract posts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top