Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What to use instead of FPW 2.6 INSERT ?
Message
From
19/08/2004 19:12:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/08/2004 19:05:47
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00934656
Message ID:
00934715
Views:
27
>Sorry; thanks for the idea, I tried it thinking that it would work, but it doesn't. When trying to "INDEX ON somefieldname", FoxPro generates the error "Command cannot be issued on a table with cursors in table buffering mode." FoxPro won't let me set up a new index directly on the view.
>
>The base table from which the view is derived contains indexes, one of which would work nicely for this, but these indexes aren't directly useable by the view (as least not that I know of.)
>
>Any other ideas?
>
>Thanks,
>Randy W.

Views are directly indexable as long as you don't set buffering from default row to table. If you want to use table buffering, temporarily switch to row buffering, index and switch back. ie:

CursorSetProp('Buffering',3,'myView')
* create your indexes
CursorSetProp('Buffering',5,'myView')

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