Another option is to use the freeware databee tool, this will generate the required scripts

http://www.databee.com/dt_home.htm

Regards