Thank this author by sharing:
By Chris Morton,
This code has specifically been written to complement this: http://www.sqlservercentral.com/scripts/AutoGenerate++++++parameters/64760/
to accomodate the dropping and recreation of stored procs should the db structure change...
Modification of the code can be done to accomodate the dropping of all stored procedures and functions (use drop function and take out create proc)
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.