If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Odd Pervasive.sql Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-05, 23:46
chief7 chief7 is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Odd Pervasive.sql Error

I have an odbc connection setup for my pervasive.sql database and it tests ok., When I open the Pervasive Control Center I can view a list of all the tables but if I try to open one of them I get the following error:

ODBC Error: SQLSTATE = S1000, Native error code = 0
Unable to open table: AP Current Distrib.
No such table or object.

In addition, if I try to open an asp page that accesses the db it gives the following error.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Unable to open table: PM Occupant Info.
/SysAdmin/adminC.asp, line 13


The db works fine on another server. So it has to have something to do with the configuration. Any ideas?
Reply With Quote
  #2 (permalink)  
Old 12-21-05, 09:45
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
It might be a configuration issue if the database has paths in the DDFs. Issue a "select * From x$file" and look at the xf$loc for the table(s) in question. If there is only a filename, make sure the file with that name is in the same directory as the DDFs. If it's got a path with the name, make sure the file exists in the path.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 12-21-05, 10:36
chief7 chief7 is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
I checked and there are not any paths. I use the same ddfs for the other db that works, so I doubt that is the issue. I think it must have something to do with how I have the ODBC setup.

Any other ideas on what would cause this error?
Reply With Quote
  #4 (permalink)  
Old 12-21-05, 10:46
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
It might have to do with the way the DBname is set up but the ODBC driver just points to the DBName.

What happens if you copy the DDFs/Data file to another location on this box, create a new DBName/DSN pointing to the copy? Does it give the same error?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 12-21-05, 11:27
chief7 chief7 is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Yes I get the same error with that test.
Reply With Quote
  #6 (permalink)  
Old 12-21-05, 13:44
chief7 chief7 is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Thanks for your help.

Any other ideas are welcome. I don't know what else to try.
Reply With Quote
  #7 (permalink)  
Old 12-26-05, 08:30
chief7 chief7 is offline
Registered User
 
Join Date: Dec 2005
Posts: 16
Any other ideas?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On