Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form using remote view Needs to use TEST or PROD databas
Message
De
22/07/2008 20:39:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01333287
Message ID:
01333362
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Folks,
>
>I have an application using a VFP connection and remote view into a SQL Server PRODSERVER database "HarnData".
>
>I need to provide a TEST version of this application using a VFP connection and remote view into a SQL Server TESTSERVER database "HarnData".
>
>Both the HarnData structures are identical except for data contents.
>
>How do I make the application use the remote view into PRODSERVER data or TESTSERVER data?
>
>NOTE: I have tried using two databases. One uses a connection and remote view into the PRODSERVER database and the other uses a connection and remote view (of the same name) into the TESTSERVER database. When the app runs, it makes no difference which database is opened and which connection is established, the remote view always is showing the PRODSERVER data.
>
>I appreciate your help.
>
>Bob

No need for two databases, just modify the connection parameters of the connection that the remote views use. You want to do that at startup, before using any remote views.

Check DbSetProp and DbGetProp for connections.

Carlos Alloatti
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform