I had to create scripts for a couple of Stored Procedures today. SQL Server Management Studio provides that functionality: You can right-click on an object (Stored Procedure, Table, etc) and choose Script As and there you go. You can also right-click on the database and use the scripting...