Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Question
Message
De
21/02/2006 14:09:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01097661
Message ID:
01097840
Vues:
14
>I'v heard is said that there should be a view in the DBC for each table.
>
>[] Is this right?

I think yes - meaning there probably was someone who said that once :).

Is that the right thing to do, I have some doubts. Views for views' sake? I don't see a reason. Do you create a table you don't need? Then why would you create a view you don't need.

>[] What purpose would this serve.

A proof-of-concept for the bright idea of the person who said that in the first place?

Actually, the good reason may be the groundwork for later upsizing: to have a view on each table, each table then has to have a viable primary key; once you have a view, it's quite easy to replace such views with remote views, and thus the upsizing can be done in a day, more or less. In this layout, it makes sense.

However, if you don't have any plans to move your tables to a DB server, or already use one, or want to do SPT instead of views, then I don't see a good reason for this.

>[] What happens when the underlying structure change?

Keep the views in a separate dbc, do a gendbc() on it, and re-run the generated code whenever your structures change. Takes just a second to run.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform