This Script was originally posted by Deepthi but had some significant issues.
I have modified it for those like for identtity column and MAX data width.
To use this script copy this and execute it in a query browser
after successful creation you can execute this SP by passing the table name as a parameter on which the resultant SPs are to be created.
Enjoy..