Hello, having trouble with a solution to only query new records in a remote
view and would like some help.
Have a local table (free vfp table) with an ID field and a remote view to
SQL table with the same ID field. What I want to do is change the remote
view query to the SQL table to pull only records where the ID's do not match
the local table. The reason is that this particular table contains 500,000
records and I'm trying to reduce the amount of data being pulled in the
remote view itself. The result set would then contain only new records in
the remote view since my last pull. No consideration needs to be made for
changed records, just new records in the remote view as determined by an ID
that does not match the local free table.
I'm was thinking something like, use the remote view, use the table then a
compare loop but that defeats the purpose as I'm still pulling all records
in the remote view.
Using the CREAT SQL VIEW and within the AS SELECT portion, can I reference
data from the remote connection AND a local table at the same time? But if
the local table isn't part of the remote connection won't that mess up? So
the SELECT would be something like CREATE SQL VIEW 'MyView' REMOTE
CONNECTION 'MyConn' AS SELECT RemoteViewTable.Field from RemoteViewTable
where RemoteViewTable.Field = LocalFreeTable.Field?
I suspect my approach is off....any ideas?
TYIA
=Ben