Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view against VFP tables - deleted recs?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01523480
Message ID:
01523668
Views:
40
You don't need to change the control sources. It should be the view opened with the same name, so your code should not be changed. Just in case of local data it will be local view (opened under generic viewname alias) and in case of SQL Server data it will be remote view.

>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??
>>>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform