Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Databases without exitig program
Message
De
09/08/2001 09:35:07
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00541625
Message ID:
00541737
Vues:
13
>Hello to All,
>I've got an application with multiple sets of databases , a set of databases are used for separate companies. The user needs to be able to change between databases without restarting the program as you could do with selecting a different local path in preferences.
>
>I am using the MetaDBC to contain the different directories for the different companies with a client field to identify each company. But I have to shut down the program and restart to get the change to take effect.
>
>Thanks for any help.
>Jon

When you say you "have to" shut down the program, do you mean you didn't see any other way, the program crashes when you try to switch, or you aren't seeing the change take effect until you restart?

We do exactly what you're talking about, without the user having to leave the system. Users sign into the system using MM security. Immediately afterward, they must select a Client from the bridge linking each user and the Clients to which they have access. At that point, we filter the MetaDBC to show only the default database (Our "common.dbc") and the client-specific one they selected. After that, it's just a matter of shutting down the previous client's dbc and opening the new one.

Hope that helps...
---J
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform