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 > alter table out of app

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-19-03, 13:29
powersw powersw is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
alter table out of app

I'm using Powerbuilder 6.5 and Pervasive SQL 2000i WG SP4.
I want to alter a table (e. g. add a column) programmatically in my app.
when I issue the execute statement, I get the error -85 (-4914) "The file is locked".
In the control-center (of course) it works.
Second question: Is there a way to run a sql-statement via control-center from the commandline with a .sql-file?
Reply With Quote
  #2 (permalink)  
Old 01-20-03, 01:52
usander usander is offline
Registered User
 
Join Date: May 2002
Location: Germany
Posts: 7
Hi,

this usually means that you have opened the table with an SQL statetment before trying to alter it. If you are sure that you did not do anything like SELECT, please check of some internal Powerbuilder routines give you some unwanted help. You can also use the Pervasive Monitor utility to get an idea what prevents you from altering the table.


HIH

Uwe
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