Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help - My DBC has become read only
Message
From
28/07/2003 06:23:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/07/2003 05:57:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00814005
Message ID:
00814009
Views:
9
>I have a DBC with some views in it.
>
>For some reason this DBC is baving like it is read only.
>
>I have checked the attributes of the files and non of the files area marked readonly.
>
>The bahaviour seems to be as if I had opened the DBC using the NOUPDATE clause
>but I am using .
>
>OPEN DATABASE C:\AWORK\DATAPROT\VFP\Dataprot1.dbc EXCLUSIVE
>
>MODI DATABASE
>
>Does anyone have any iodea whats is going on and how I can get out of it.

Mark,
It might be already opened shared. Then though including 'EXCLUSIVE' doesn't error but doesn't open exclusive.

ie:
set exclusive off
use customer && This causes testdata.dbc be opened
open data testdata.dbc exclusive && Already open - behaves as if it was
* set data to testdata.dbc

Do it like this :
close data all
open data testdata exclusive

PS: Close data all doesn't close in all sessions under all versions (ie: a form with a private session using one of the tables from that database and VFP7). I assume you have no forms up (or seesion objects).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform