Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Multiple Copies of the same Database in SFQuery
Message
De
27/01/2004 16:41:52
 
 
À
23/01/2004 11:55:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Divers
Thread ID:
00869941
Message ID:
00871131
Vues:
24
Hi Claude.

>I have a test and a production system that use the same database name. I would like to be able to run reports form both of them. I orginally created a project with the test version of the database.
>
>How do I add the production database to the project?

Create a GetDataSources script for the database (in the Configuration Utility, select the database node, then click on the Create GetDataSources link). Then fill in some code that adds objects to the DataSources collection, specifying the location of the database. For example:
lparameters toApplication, toDatabase
local loDataSource
loDataSource = toDatabase.DataSources.AddItem('VFP', 'My Datasource 1')
loDataSource.Database = 'c:\apps\data1\mydatabase.dbc'
loDataSource = toDatabase.DataSources.AddItem('VFP', 'My Datasource 2')
loDataSource.Database = 'c:\apps\data2\mydatabase.dbc'
Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform