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 > can't seem to access database !!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-26-04, 07:42
sleeplessnights sleeplessnights is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
can't seem to access database !!

Hi,

I've got a database that I connect to using odbc and
want to check the connection using the control center
when I open a table or even the ddf files I get an error
odbc error:sqlstate = S1000,native error code = 0
unable to open table : ......
The Microkernel cannot find the speified file(Btriev Error 12)

Al the ddf files and btriev files are in the same dirrectory
A0001 and the btrieve file is A001_01
when I use the function executer I have to enter the user ea 03
and the I can connect to the btrieve file ok

But when I go to task \ edit table disign I cannot see the fields of
the file location

Can Enyone tell me what I'm forgetting or doing wrong

Kind Regards
Kevin
Reply With Quote
  #2 (permalink)  
Old 08-26-04, 08:11
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Open the X$FILE table and look at the XF$LOC field for the table in question. Does it show just the file name? If not, then the data file needs to be in a directory other than the directory where the data file is located.
__________________
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 08-26-04, 14:05
sleeplessnights sleeplessnights is offline
Registered User
 
Join Date: Aug 2004
Posts: 2
THe problem is I can't open the ddf files they give the same error as the
tables has this something to do with user.ddf
in the dir of the database I have only got the
file.ddf field.ddf and the user.ddf but no index.ddf

in the control center i get all the tables and the
file.ddf index.ddf and the field.ddf

but I cannot open the tables nor the ddf files

Kevin
Reply With Quote
  #4 (permalink)  
Old 08-26-04, 17:56
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
In that case, I would verify the path of the database name itself. You can right click on the "Configuration" node and select "Maintain Named Databases". Then you'll want to find the one you're using and verify that it's pointing to the right path for the DDFs and the data files.
__________________
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 08-27-04, 07:11
SirJohn SirJohn is offline
Registered User
 
Join Date: Aug 2004
Posts: 5
Unhappy We get the same problem and have to restart Pervasive Services?

We get the same error, resarting the services cures it for a short time before it happens again. I have checked our X$File when this happens - its empty? so are all the other system files. I tried deleting the database and re-creating this made no difference. Resarting the services is all we can do. Why would this happen every so often.
Reply With Quote
  #6 (permalink)  
Old 08-27-04, 09:24
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
I've never seen that behavior. What's in the PVSW.LOG file?
__________________
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
  #7 (permalink)  
Old 08-27-04, 09:56
SirJohn SirJohn is offline
Registered User
 
Join Date: Aug 2004
Posts: 5
Unhappy X$FILE empty - PCSW.Log

The log shows no indication of problems. Do I need to set Pervasive to log specific errors?
Reply With Quote
  #8 (permalink)  
Old 08-27-04, 10:59
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
No, it should log issues automatically. Is there anything in the Event Log?
__________________
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
  #9 (permalink)  
Old 10-06-04, 13:44
ndavies ndavies is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
Can't access database via ODBC - X$File, X$Field and X$Index empty

Quote:
Originally Posted by mirtheil
No, it should log issues automatically. Is there anything in the Event Log?
I've had the same problem where X$File, X$Field and X$Index tables are all empty. I've verified the "Maintain Named Databases" as you suggested and checked the pvsw.log & event log and all seems ok. The only solution was to restart the services. Can you throw some light onto why this is happening, and what I can do to prevent it from happening again?
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