Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Advantages/disadvantages of DBCs
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01466065
Message ID:
01466200
Views:
67
>Interesting link - I had not seen that before. Anyway thought I'd jump in and put my 2 cents worth in......
>
>The way I've dealt with VFP -> SQL is simply to use remote views for everything. So basically here is the way I do it.
>
>1. Create a DBC with all your tables in it. When you do this - make sure the field types are SQL Server compatible. In other words - in VFP don't use Date fiields... don't use Time fields --- use DateTime fields because that's what SQL Server has.
>2. Create another DBC. In this DBC create a connection string to your VFP DBC.
>3. Now create remote views in DBC #2 and use these for your application.
>
>...So now you have 2 DBC's - one with tables, one with remote views. Your application uses nothing but the remote views.
>
>At this point - all you have to do is upsize your VFP tables to SQL Server. Assuming you did everything correctly (made sure all the data-types are compatible) even the sucky upsize wizard in VFP will work.
>
>Next - in your DBC with all the remote views - if you change that connection string to point to your SQL database instead of your VFP DBC - then your are done.
>
>I've done this a zillion times and posted about it out here before. It works really well - and by simply changing a connection string in the DBC you can switch between VFP, SQL, Oracle, MySQL or whatever back-ends and not have to recompile anything.
>
>The article seems neat & I'll take the time to read into it more - but I think my solution makes a LOT MORE sense


Did not see such solution in a long time, but from what I remember back in mid 90ies with VFP5-6 this scenario of using
VFP data through ODBC was donkey slow (Hence w95 / Pentium1's 10mbs LANs)
I lived trough nightmare of maintaining someone else application that used this aproach, and it was extremely frustrating back then.

It looks easy from software vendor POV, but not really 'magic wand' aproach. Back then I would actually prefer having two versions
of applications. One ordinary DBC/LAN/fat client for smaller clients, and then bigger CS solution for bigger clients that require MSSQL,Orace etc. But that is just me {g}
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform