Used BODS read a parameter table which it then used to generate and run the sql needed to copy tables from one database to another. The destination tables were based on parameters supplied in the parameter table.