Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What are your Views on Views?
Message
From
27/07/2000 10:20:51
 
 
To
27/07/2000 04:24:40
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00397035
Message ID:
00397571
Views:
8
>Thanks Ed:)
>
>>>1. Should application specific tables such as our application registry be also be a view. Does this degrade performance.
>>>
>>
>>Does a view make sense, either to filter some subset of records, present a join with another table, or to permit data entry without automatically triggering field or record-level validation rules that live in your .DBC? If so, then views, particularly parameterized views, may make sense. Not all access demands the use of views, but it makes parameterized retrieval of recordsets easy, can prevent users from directly updating the data table, perform joins so that the join is presented as a flat table without lots of SET RELATIONS/SET SKIPS, and permitting you to enter data for new or updated records and validate them before submitting them to the database, whose stored procedures form the basis of validation in a less controlled fashion.
>>
>
>So in the specific case of our applcation registry or keytable, we are doing none of the above and should leave it as a standalone table with the application?
>

If there are no permanent relations, views, triggers orstored procedures associated with the table, and it operates independently of the basic application schema, there's no compelling reason to include it in the DBC.

>
>>
>>The use of views does simplify the move to a backend on an initial basis; after upsizing data to the backend, query processing for views can be switched to remote views in some cases (eventually, you end up re-writing things either as stored procedures or to directly use SPT to leverage features not available with VFP directly, or to improve data access performance) with relatively little work. I've found that many clients are asking that the application be developed to use the MSDE for the primary database schema, relying on SPT or ADO for handling non-static tables; their take is that it's easier to port to SQL Server from the MSDE than from VFP and VFP .DBCs, especially in terms of triggers and SPs.
>
>What does SPT stand for?

SQL Pass Through
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform