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 > Regarding access permission to Pervasive database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-09, 04:33
bijay_bhr bijay_bhr is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
Regarding access permission to Pervasive database

Hi,
I have an application whose backend is Btrieve. So it has DDF/DTA files.
Currently I have no Btrieve database. For Database I'm using Pervasive.
I have taken the files(DDF/DTA) from Btrieve repository and place them in pervasive repository to view the data. But at Pervasive I'm unable to add/modify data. It shows error like "you are not authorized to do that".

Any quick suggestion/help regarding this.

Thanks in advance...
Bijay
Reply With Quote
  #2 (permalink)  
Old 06-12-09, 10:13
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
If this is an upgrade from an old version of PSQL, it's very possible you've got data files (DDF/DTA) in v5.x format. Newer versions (PSQL v9 and later) will let you read v5.x files but will not write to them and will return a status 51.

THe "you are not authorized to do that" message is not a PSQL specific error. PSQL always returns a number error code. if you post that, we might be able to give better suggestions.
__________________
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 06-13-09, 01:39
bijay_bhr bijay_bhr is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
Hi,
While adding data to a specific table(in Pervasive) it shows the error :You are not authorized to perform this operation.

while openinig the ddf files(X$Field/X$User/X$Rights/X$Index), it will shows the following eror.

ODBC Error: SQLSTATE = S1000, Native error code = 0
Unable to open table: X$Field.
You are not authorized to perform this operation.
Reply With Quote
  #4 (permalink)  
Old 06-13-09, 08:28
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Adding data directly to the DDFs is not supported or allowed. The DDFs have a owner name on them that prevents direct editing. You need to use CREATE TABLE, ALTER TABLE, and DROP TABLE statements to affect the DDFs.

What are you trying to do?
__________________
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
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