Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1709
Message
De
05/02/1999 18:09:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
05/02/1999 10:43:35
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00183899
Message ID:
00184579
Vues:
58
>
>The second solution, that works perfectly (but you won't like it), is to move the views to a separate DBC and distribute the new DBC with the app to each workstation (this is what I do). When you create a view, have the target database open as well. Then, when asked which tables to add to the view, switch databases in the combo box that appears with a list of databases.
>
>You end up with views based on SQL like this:
>
>SELECT (FIELDS) FROM database!table
>
>Then all you have to do is guarantee that the database that contains the tables is open. This eliminates the problem you are describing.
>
>Hope this helps...

I've actually come up with a similar idea - for views-only DBCs I usually cram a generating routine, using what gendbc.prg generates and trimming it from default values, stripping the fields list where I need only a "select *" and such. This routine could be run with a database path\name as a parameter, and it could as well be generated for each user upon installation or at app start time, and reside at user's local disk. This would add speed, get rid of Erik's problem, and have no maintenance at all - if it builds each time, who cares if it crashes, next time we get a new one. If it crashes, it crashes only once for one user - and all the others work just fine.

This might sound as an overkill, but maybe that's what's needed in cases like this.

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