Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBC for views
Message
De
21/09/2004 21:19:14
 
 
À
21/09/2004 13:23:19
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00944541
Message ID:
00944820
Vues:
28
Hi Walter,

I've been doing this as well, but recently I've run into a problem. It seems to only happen on some Windows XP pro boxes. config file brings tmpfiles to local \temp. Data files on server, EXE running locally. views dbc compiled in.

On some boxes a view with indexes ( created from metadata in VFE ) will crash on opening. Excluding views dbc solves the problem. Can't reproduce it on any of my dev boxes and on half my client boxes ( even those that shared a common data store on the network. ) Permissions are identical. My only suspicion is it has something to do with which updates are installed though I can't track that.

Have you seen anything like this?


>Hi mike,
>
>I've been using this strategy for a couple of years now. The views are stored in a seperate DBC which is included into the project. The views point to tables in the other database.
>
>This all work very well. For one project I've wrapped several databases into one transaction and it all works fine. However you cannot wrap free tables into a transaction.
>
>
>>Back when I used views I began using one DBC for views and another for tables. The premise was that the contention caused by two users accessing a single DBC for a single view would be eliminated. This worked very well.
>>
>>A warning from Drew Speedie has me thinking this situation through. Again, to me this is mostly academic now, but here goes. The warning is that transactions are not supported across multiple DBCs.
>>
>>If a view is in DBCa and a table is in DBCb, when I alter the record(s) in the view, begin a transaction, issue a tableupdate (on the view of course) and something goes wrong, I rollback the transaction. Is the transaction spanning multiple DBCs? I think not.
>
>Yes it is. In fact my personal framework is based on this priciple.
>
>>I'm guessing here, but the transaction is wrapping updates. Data is moved from the view to the table. If the transaction fails, only the changes made to the table must be undone. I doubt the view itself is updated. The getfldstate flags are certainly updated, but I'm guessing they are not part of the cursor. Even so, that cursor is exclusive and any reverts should work.
>
>Not sure what you're saying here
>
>>So the transaction could be managing updates in a single DBC.
>
>Nope, multiple DBC should work well.
>
>
>One tip: If you want to speed up your views, make sure that they either are readonly or opened exclusively. This will cache the DBC on your workstation and will speed up opening and requerying of your views.
>
>
>Walter,


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform