× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Dieter!

I'm confused by your comment.

If you look at my previous post, all I use the externally described data structures for is as reference templates to define the fields in my result DS.  This makes no tie to my program between the file structure and the program, just the field definitions.  I just use those field definitions to create a data structure that I then read into using my SQL statement, thus allowing the SELECT * syntax.

If this cursor is used only by this program, then creating a separate VIEW object isn't necessary.  The result data structure is perfectly adequate.

Thanks for your input!



<Joe Pluta>
My one unbreakable rule is that there are no unbreakable rules.
</Joe Pluta>

for every rule, there will be people, not understanding the rule and they will break it, but mostly they will earn some punishment.

<Joe Pluta>
So yes, you're referencing the file, but no, you're not in danger of a level check.
</Joe Pluta>

SQL (and we where talking about SQL) has no level checks, never ever!!!

The rule to have a complete view layer between the database and applications decouples your application from the physical implementation of your database. You could make changes in your database and as long as you could provide the same views with the same behaviour, your application won't see it and wouldn't need any change. Database access get's very easy, just select * from someView where some conditions, order by some columns and with the capability of external DS you could fetch into a suitable DS.
Introducing another rule: avoid changing a view (instead you could add another!!!) change impact is minimized (very important for 24/7) makes the life more easy again.
Some punishment you will earn following the proposal with the Dtaara approach would be: changing your select statement, it could happen that your ResultSet doesn't match the DS and Murphy says: shit happens (and that's a rule, even Joe can't break), swapping two columns, the columns could fit to the fields and you would have a happy time to find this, maybe weeks later.

D*B



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.