Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view against VFP tables - deleted recs?
Message
From
15/09/2011 19:30:08
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
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:
01523686
Views:
33
>>Change connection string - done! No recompile or anything required. Like how simple can it get right ??? hahaha

Except that you've run into a problem. ;-) Plus you have a security issue with database connection settings stored in the clear in the dbc on disc. And you risk dbc contention issues. If you don't like USE ... ALIAS, the other option I mentioned was to use xCase to create a dbc with views for local tables and a dbc with views for remote tables. Once you have the correct dbc open there is no programmatic difference. You can put the RV connection string into an encrypted ini file on the server so the app can decrypt it and create the connection for sharing, before you open the RV dbc. No contentions. No connection settings stored insecurely in a dbc on disc. If you use xCase it'll be much easier to keep your local tables and SQL Server synchronized as well, including the views against them.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform