Remote views, VFP database container (.dbc) and database connections
Posted: Thu Feb 25, 2021 3:42 am
Hi,
Sorry if this is answered elsewhere, but I haven't found a document covering this area.
An important part of making X# feasible for converting our large VFP project is support for :
Remote views
VFP database container (.dbc) to hold the remote views (or some alternative)
Database connections, defined in the .dbc to hold the connection string etc that the views are based on (or some alternative)
For example :
open database xyz
set database to xyz
create connection myconn ... connstring "Driver=SQL Server;Server= etc" ...
create sql view myview remote connection myconn as select * from mytable
use myview
...do stuff with myview, including writing with row and table buffering...
use in myview
Would also be great if tableupdate() and tablerevert() are supported, but even just immediate writes might be fine.
While it would be possible to use SQLStringConnect() and sqlexec() instead of remote views, that would involve a great deal of re-coding in VFP and would make an X# conversion impractical at that point.
Could someone please point me to a document that might cover this, or an entry in the roadmap that either includes or excludes support for these concepts?
Thanks.
Paul
Sorry if this is answered elsewhere, but I haven't found a document covering this area.
An important part of making X# feasible for converting our large VFP project is support for :
Remote views
VFP database container (.dbc) to hold the remote views (or some alternative)
Database connections, defined in the .dbc to hold the connection string etc that the views are based on (or some alternative)
For example :
open database xyz
set database to xyz
create connection myconn ... connstring "Driver=SQL Server;Server= etc" ...
create sql view myview remote connection myconn as select * from mytable
use myview
...do stuff with myview, including writing with row and table buffering...
use in myview
Would also be great if tableupdate() and tablerevert() are supported, but even just immediate writes might be fine.
While it would be possible to use SQLStringConnect() and sqlexec() instead of remote views, that would involve a great deal of re-coding in VFP and would make an X# conversion impractical at that point.
Could someone please point me to a document that might cover this, or an entry in the roadmap that either includes or excludes support for these concepts?
Thanks.
Paul