Here is a script that will write code to initialize a Dynamics GP 10.0 database. It depends on a table called _temp that has a list of tables to initialize. This script will scan that table and write insert statements for all the tables in the source table
You would use this script if you had created a new, empty Dynamics company and you wanted to copy setup information from an existing company