Reputation: 3534
I have an VFP based application with a directory full of DBFs. I use ODBC in .NET to connect and perform transactions on this database. I want to mirror this data to mySQL running on my webhost.
Notes:
Proposed Strategy for Inserts (doesn't seem that bad...):
Proposed Strategy for Updates (seems really heavyweight, probably breaks open queries on mySQL dropped table):
These are just the first strategies that come to mind, I'm sure there are more effective ways of doing it (especially the update side).
I'm looking for some alternate strategies here. Any brilliant ideas?
Upvotes: 1
Views: 1552
Reputation: 548
It sounds like you're going for something small, but you might try glancing at some replication design patterns. Microsoft has documented some data replication patterns here and that is a good starting point. My suggestion is to check out the simple Move Copy of Data pattern.
Upvotes: 1
Reputation: 3937
Are your VFP tables in a VFP database (DBC)? If so, you should be able to use triggers on that database to set up the information about what data needs to updated in MySQL.
Upvotes: 1