INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

No Such Table or Object Error

No Such Table or Object Error

(OP)
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.

RE: No Such Table or Object Error

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
http://www.mirtheil.com

RE: No Such Table or Object Error

(OP)
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,

RE: No Such Table or Object Error

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
http://www.mirtheil.com

RE: No Such Table or Object Error

(OP)
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.

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close