• Dear all,

    First of all, thank you for the nice words. Writing up the article was a lot more work than I anticipated, but also a lot easier than I feared. My english teacher would have been surprised, but proud. Steve was really helpfull here.

    Phil; yes, we tried nested views. But as __Celko__ found out (after a "few" mails), views are no more than "macros", that are resolved into base tables at compile time.

    Yes, our solution do read the catalogue to get the list of tables needed. But it is some of our own tables that we read, so it did not make sense to show that.

    andreq1, michaelwang; yes, that is one of the solutions that Erland Sommarskog lists, on one of his pages; http://www.sommarskog.se/dynamic_sql.html#Sales_yymm. If you have not read, printed and rehearsed his entire homepage, I think you should. Here it is mandatory reading.

    Andrew; to have such a client is not a disaster, it is work. Albeit lots of it. šŸ˜‰ This client is friendly and is focused on obtaining the best solutions, so Iā€™m sure we will end up with something near perfect at some point. But not without loosing the main focus; providing value for the (end) customer.

    Best regards,

    Henrik