Lattice.SPGen is a template-based stored procedure and code generator that supports Microsoft SQL Server, Oracle, IBM DB2 UDB, PostgreSQL and MySQL. It processes any tables and views in the database that you select and generate stored procedures scripts of insert, update, delete, select (single or multiple records) as well as business entities for C# and VB.NET.
The output scripts file can be chosen as one file for all tables / views or one per table / view based on your preference. Version 3 has now support MySQL, PostgreSQL and DB2 UDB. Also Lattice.SPGen will generate business entity (C# and VB.NET).