with func_odbc, in the definitive asterisk guide, they were suggesting the possibility that part, or perhaps all of, the dialplan could be written as SQL statement!?
First off, that sounds like a good idea to me, but the tone of the authors was suggesting not so much, but that it was a personal preference.
From a naive perspective, why SQL statements at all? Why not just database config and data instead?