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 > Error 11 when using PVTable (PDAC)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-21-10, 09:31
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
Red face Error 11 when using PVTable (PDAC)

When attempting to use the PvTable component in Delphi 7 we get Btrieve 11 error. This happens on the PDAC samples as well.. The PvQuery components work just fine. The ODBC Express components all work fine.

Any assistance will be appreciated.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-21-10, 10:54
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
WHat version of PSQL are you using?
What version of PDAC are you using (version of DRM.DLL)?
What are you specifying for the PvTable.DatabaseName?
Does it happen for all tables and all databases?
__________________
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 05-21-10, 12:04
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
PVSQL version: 10.13.037.000

DRM.DLL version: 10.0.151.0

Session1.SessionName: PvSession1_1
Session1.AutoSessionName: True
Session1.ServerName = Server2

PvTable1.SessionName: PvSession1_1
PvTable1DatabaseName: FOSDATA (selected from dropdown)
PvTable1.TableName: AIRPORTS (selected from dropdown)

When I set PvTable to Active I get the error message:

(Btrieve Error 11). Table name is AIRCRAFT. Component is PvTable1, Owned by Form1.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 05-21-10, 12:09
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Does PDAC work with DEMODATA?

What is the result if you issue the following in ODBC Test or PCC:
select * from x$file where xf$name = 'AIRPORTS'
__________________
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 05-21-10, 13:17
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
Very interesting results!

DemoData works fine. And a copy of FOSDATA on my local PC works fine. It appears that the issue is with the database on the server - Server2.

I did not perform the Select since is works fine on the DemoData database.

Thanks for the insight. What's next?
Reply With Quote
  #6 (permalink)  
Old 05-21-10, 13:26
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Try the SELECT on your server database (not DEMODATA).
You might want to check for differences between the server's database and the local copy. Check the Database and Data directories.
__________________
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 05-21-10, 13:46
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
The query works where ever I run it. The major difference is that on the Server database the locations are different between


H:\NEWDRIVED\FOSNTDATA\DATA - in the Directory Location field

and

\\SERVER2\NEWDRIVED\FOSNTDATA\DATA - in Data Directories

For DEMOData both are identical.

Could it be that one uses a UNC path and one doesn't for the database locations?
Reply With Quote
  #8 (permalink)  
Old 05-21-10, 13:52
Bill Slaughter Bill Slaughter is offline
Registered User
 
Join Date: Jan 2009
Posts: 14
Pardon my fat fingers:

The first item is the 'Dictionary Location' not 'Directory Location'.

This information is on the Database Property screen under Directories.
Reply With Quote
Reply

Tags
btrieve error 11, pvtable

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