Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view against VFP tables - deleted recs?
Message
 
To
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:
01523691
Views:
32
>>>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.

hmmm..well I ?think? I have an answer for all that:

I don't have dbc contention issues because I keep the dbc on the workstations.
No security issue because the dbc connection settings are not storing the password - that's saved in ODBC driver.
dbc on workstation has only remote views & connection string
No local views means that VFP never has to open VFP tables in datasession (remote views dont do that)
No need to maintain multiple DBC's.
No need to xCase
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform