Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local VIew as remote
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01104444
Message ID:
01104548
Vues:
16
>Database who can work in native dbf file and sql server all in one source code.
>
> best regrads

So you want to define a view in a VFP DBC that will either get its data from Fox tables or SQL Server tables based on a runtime setting? I don't know of any way to do that since the view definition in the dbc must identify the FROM data at the time you create the view. You could use a CREATE VIEW command in your code to create the view at runtime and in that way you could determine where the data was coming from when you create the view.

Either that or you could not use a view in a dbf and rather use SELECT statements in your code that could either issue the SELECT command in VFP or use SPT to do an SQLExec() with the SELECT command sending it to SQL Server. Of course using the later method would mean you would need to code the data updates yourself as well.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform