Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you update a table structure and views automatica
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00267180
Message ID:
00267206
Views:
20
Assuming the view definition (the SQL statement) is still valid after the structure change(s), the way I do it is to retrieve the query text for the view using DBGETPROP('nameofview','VIEW','SQL') and place it into a character variable. I then DELETE VIEW nameofview and replace it by issuing a CREATE SQL VIEW command using the retrieve view definition and macro expansion. If you don't want the obsolete view in the DBC just PACK DATABASE.
>How do you programmatically update a view after you modify a structure so you don't get "base fields have changed" message
Previous
Reply
Map
View

Click here to load this message in the networking platform