Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote views: base tables have changed...
Message
From
10/05/2001 16:13:38
 
 
To
10/05/2001 16:02:52
Scott Barker
Barker Systems Consulting Ltd.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00505974
Message ID:
00505986
Views:
21
This message has been marked as the solution to the initial question of the thread.
>Hi there.
>
>Over the past while I have tried to understand what triggers my VFP remote views to proclaim that the base tables have changed ...
>
>I know that this is caused by a change to the sql table's structures ... makes sense. When I have had to add a field to the sql table, I have simply been ensuring that I go into any remote views that use the effected table and make sure I have entered the update tab, and then resaved the remote view.
>
>My question is ... when I change a sql table, not all remote views that use the table have this problem. Why?
>
>It seems like the view that I added all of the fields to the remote view using ADD ALL are effected. Remote views that only have some fields are not *always* effected. But this is not always the case.
>
>Does anyone have a clear understanding of this. Or some suggestions as to a better way to handle this if remote views are being used?
>
>Thx, in advance, for any assistance in this regard.
>
>Scott Barker :-D

The best way to avoid getting this error is to reverse the order of a couple of fields in your remote view. What happens is even though you have selected all of the fields in the View Designer, and the the SQL Select statement appears to be "select * from {tablename}", the field mappings are still being recorded for all fields separately in the DBC. By changing the order of a couple of the fields in the select statement you will get around this problem.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform