How to auto generate stored procedure or table script in SQL

Published --