Re: Early and late binding.
Date: Sat, 21 Jan 2006 17:50:37 GMT
Message-ID: <NvuAf.204$ur3.41_at_trndny07>
"mAsterdam" <mAsterdam_at_vrijdag.org> wrote in message
news:43d226c9$0$11073$e4fe514c_at_news.xs4all.nl...
> In prolog there is no difference. That is the other extreme.
> In SQL itself you can can mix DDL and DML, if you so decide.
> Some applications do. The times I saw that mix used I did not like it,
> and could trace it down to poor design. Maybe this is necessarily so,
> maybe not. Thoughts?
It depends.
Some DDL, like CREATE INDEX or DROP INDEX, has relatively little consequence
(except for performance). It wouldn't be necessarily a "bad thing" (tm) to
put these operations into the stream of end-of month processing, intermixed
with ordinary DML.
Also, if the underlying information requirements, or the known part thereof,
is a moving target, then DDL is called for. This moves into the domain of
mountain man's evolving schema. If however, the information requirements
are static, and the application is constantly doing DDL to reflect ongoing
routine transactions, something is probably wrong somewhere.