Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Why?
Miscellaneous
Thread ID:
00676027
Message ID:
00676027
Views:
63
In a form i use 3 views. In DE I set .NoDataOnLoad = .t. for all of them.
In Init method I indexing & requering them:

SELECT NuNch
INDEX ON Egn + STR(Kod,3) TAG NuI OF NuNch
CURSORSETPROP("Buffering", 5, "NuNch")
SET ORDER TO NuI
Requery("NuNch")

SELECT StorView
INDEX ON Egn+STR(God,4)+STR(Mes,2)+STR(Kod,3)+STR(Shem,2)+STR(Fund,2) TAG Storno OF StorView
CURSORSETPROP("Buffering", 5, "StorView")
SET ORDER TO Storno
Requery("StorView")

SELECT KadView
INDEX ON LEFT(Key,4)+Unicum TAG KadView OF KadView
INDEX ON Key TAG KadKey OF KadView
CURSORSETPROP("Buffering", 5, "KadView")
SET ORDER TO KadView
Requery("KadView")


I do some calculations & when I try to write them back to disk:

BEGIN TRANSACTION
   SELECT StorView
   TableUpdate(.t.)

   SELECT KadView
   TableUpdate(.t.)

   SELECT NuNch
   TableUpdate(.t.)
END TRANSACTION

I got always the same error:
Table KadView has one or more non-structural indexes open. Please close them and retry the Begin Transaction (Error 1548)

Why?
Why not for all of views? I am not indexing the KadView anymore but the Init method.


TIA
Boris
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Next
Reply
Map
View

Click here to load this message in the networking platform