Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatically (progammatically) update SQL source fields
Message
From
07/05/2002 10:51:04
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00653247
Message ID:
00653519
Views:
17
Steve,

By naming all the columns, your report won't break unless a key is changed or one of the columns you are using is delete or renamed which is much more unlikely. VFP checks the columns in the result set against the UpdatableFieldList and the UpdateNameList and if there is a difference then and error is generated. If you name the columns then you will never get the new columns.

It would also be easy to write a validation program using sqlcolumns() that would verify the structure of the tabels you are using.


>That's the problem. Any structural changes made by the vendor are out of my control (and knowledge until a problem occurs), so I need a way to dynamically determine that the table has changed. Unfortunately, if they make a fundamental change to any field that I'm using, the report will break anyway. I'm betting, however, that they are adding fields, etc. which are superflous to my reporting engine.
>
>I can add all known fields to my select until they add something later...Can a view be set to "select *" rather than each field individually?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform