I don't know exactly how you mean 'recreate' (from what?), but one Perl solution might be to use SQL::Statement
In reply to Re: SQL table recreation by erix in thread SQL table recreation by Win