• Why do you choose the harder way? You have that in SSMS: right click on a database - > tasks -> generate scripts and then you have the many options - which is essentially important.

    Igor Micev,My blog: www.igormicev.com