It would be most helpful if you could show us an example of these SQL-scripts so we have an idea of what you mean/need. Perhaps there is even a solution withing SQL itself possible (subrequests and the like spring to mind).
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
Comment on Re: Execute a sql script with another sql scripts as input