Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view against VFP tables - deleted recs?
Message
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 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01523480
Message ID:
01523667
Vues:
44
What do you mean by 'no waiting'?
I actually have no problems using this approach - the issue I'm having this time isn't because of my "one remote view for multiple backends" approach - it's because of flaws in some other existing VFP application that I inherited.

I'm still a little confused on how your idea of using local and remote views would actually work. Wouldn't I have to change the control sources? If I have myremoteview.myfield for a control source I'd have to change it to mylocalview.myfield when switching between backends right? And what about the miles and miles of code in the app that uses the data from all these remote views to do things? I would have to go back and tweak all that to use a different set of views if switching backends? Plus now debugging would be harder as the same set of views & code doesn't run for multiple backends...not to mention that every time there was a table structure change you'd have to make two sets of changes instead of one. I've actually been doing this since 2001 and it's worked great thus far. I've connected the same app using the same remote views to VFP, SQL Server, mySQL and Oracle backends with no need to even recompile. I've only sat down and thoroughly gone over how I'm doing this with 2 other VFP guys - both of which are now using it.

>Two Views, no waiting. No, you don't need to change the control sources. Reports depend on how you set them up. You may only need one view, but you are running into issues with it. So, you're trading one set of problems for another. IMO, the problems you have to deal with are bigger.
>
>>But if I do that - then I need two sets of views though right? One set of local views (for VFP tables) and one set of remote views (for SQL tables). Then on top of that I'd have to write some gizmo to deal with all the control sources of all the controls on my forms and reports because those would change as I'd be dealing with two sets of views. Using my approach it's the same view either way so all those problems don't exist. ....or am I misunderstanding something??
>>
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform