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

No Such Table or Object Error

Status
Not open for further replies.

datenis

Programmer
Jan 22, 2002
98
CA
I want to connect to one of our client's machine using psql CC 8.7.

First I tried to connect directly to the ddfs on the server, and I get this error: The Btrieve file directory is invalid[betrieve Error 35]

I made sure that the user had read/write/delete access on the directory. No luck.

Then when I copy the ddfs to a local directory and pointed the database to it, i was able to see the list of tables. However, when I click on the table, I get this error message:

odbc error: sqlstate = s, native error code = 0. No such table or object.

I've rebuilt the ddfs and still no luck.

Can someone point me to the right direction to resloving either of these errors?

Thanks.
 
The status 35 is usually a pathing issue. Make sure that your DDFs and data files are in proper directories. Some programs keep DDFs and data files in different directories. Some DDFs have hard coded paths for the files.
What is the result for the query:
SELECT * FROM X$FILE

It should list all of the tables and the file names. Does the table that doesn't work show just a file name or does it have a path as well as a file name?


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
I cannot do a select * from X$FILE since the table listings for that database is not displayed on that machine.

On the other machines where I was able to make a database connection to the server, the X$FILE entries show only the file names.

Thanks,
 
When you said "...I tried to connect directly to the ddfs on the server...", were you physically at the server or were you trying to access the Server from a client using the PCC?
If you were at the client, does it work from the server?

On the machines where you access the database but get the "no table" error, what happens if you issue the Select with the table name exactly as it's stored in the X$FILE table?


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
I was trying to connect from a client machine. I'm able to connect to the database using PCC on the server.

I'm able to see the contents on the X$FILE table for the database that I get the "no table" error. However if I enter the name exactly as shown on the entry in the X$FILE table I still get the "no table" error.

If I copy the data files and ddfs to the client machine I'm able to access the data, however I'd like to connect to live data and not have to copy every time.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top