Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote Views versus SQL Pass through
Message
 
To
12/09/1998 17:36:51
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00134621
Message ID:
00135920
Views:
15
Hi Paul,

Simply, retrieving the updation timestamp and primary keys would be a better option. (i.e. only if your lookup tables have lots of fields)

You can compare these timestamps against your local table's, and issue SQL update for updated ones, SQL DELETE for deleted ones and a loop with INSERT for new ones. This looks like more work and even more SQLs but still it will be a little faster as everything is done on the local machine.

If you have just a couple of fields in the lookup, don't even bother to do such a thing. <g>

>Hi Nabil,
>
>>
>>Do you store the lookup tables on every client machine?
>
>Yes.
>
>>How do you regularly update these tables on the client machine?
>
>After the user logs on, I display a download of lookup tables screen. The screen allows the user to download all or some of the lookup tables. The user can bypass the download entirely if his lookup tables are up-to-date.
>
>If you want my code to update local lookup from MSSQL Server, let me know.
>
>Paul de Niverville
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform