My code has to create the whole database from scratch, so I would need to include the SQL code that creates the stored procedures, and therefore I think I would be left with the same mixed-language issue.
For example, one of my programs first uses modules to transform the input data from several formats into flat files. Then it uses modules that include the SQL to:
- Create an empty database with tables and views.
- Load the data from flat files.
- Transform the data into another set of tables that use a different indexing scheme.
- Query the data to generate a report.
It should work perfectly the first time! - toma