Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and SQL at the same time
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01664796
Message ID:
01665619
Views:
66
Thanks Victor.
Albert

>>Hi all,
>>
>>I am now going through and summarizing all the key points from the last thread...my head starts to spin with the number of comments made (and some of them went WAY off topic, which is normal I know). I am going to post some new threads with follow up questions that are specific so a bit easier to follow.
>>
>>First one: would it be possible to start changing their app by moving some of the more "static" information to SQL while keeping most of the data in the VFP tables? They have a few tables that are relatively static (e.g. life company tables that contain an address etc). Why in the world would I do this you might ask?
>>
>>- to allow me to learn SQL (MS or PostgreSQL) and the limitations
>>
>>- I will have to reengineer some forms to just pull down way less data (currently their company table has approx 7000 records and the form allows them to search a browsable list) and this is not a big deal. I understand though that I will most likely need to change something like this to bring down a subset of records; it would give me the possibility to present design concepts to them on a lesser used form to approve and they could see the performance
>>
>>- rewriting an entire large app myself over a couple of years and then migrating to it in one jump is full of pitfalls - we all know how many bugs can be found even with the best of testing; I could develop my own framework and perfect it before rolling it out to all the screens.
>>
>>So say I change my app to use the cursoradaptor class - does this allow some calls to be made to the SQL backend and others to just access the local/server VFP tables?
>>
>>Albert
>
>I didn't read all the responses here - so I might be repeating what others have said...
>
>Having done this a bunch of times in the past - what I've found works best is to use VFP remote views for everything. You can use remote views to access a VFP table, PostgreSQL table, Oracle, SQL Server, etc.. Now IF you design your tables properly - then you can use the same remote view to connect to any of these (and other) back-ends. Using VFP and want to switch to SQL Server? All you have to do is change 1 connection string ..and taadaa! Now using other back-end. I've had great success doing this - and even have a couple of applications that can run on VFP, SQL Server, Oracle, PostgreSQL, and mySQL -- all work with changing one connection string. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform