Script all stored procedures in Management Studio 2005

In Enterprise Manager, you could script all the SPs in the database via the right-click menu, is there a way to do this in Management Studio?

+41
sql-server ssms enterprise-manager
Oct 06 '08 at 19:02
source share
5 answers

You can right-click on the database and run Tasks โ†’ Generate Scripts ...

This will allow you to script all or selected objects (schema, stored procedures, tables, users and views) with specific parameters.

+74
Oct 06 '08 at 19:04
source share
  • Go to Microsoft SQL Server Management Studio
  • Choose a database
  • Right click on selected database
  • Select Tasks
  • Select Generate Scripts
  • Select "Next"
  • Select / mark "Select specific database objects"
  • Check "Stored Procedures"
  • Select "Next"
  • Select the option in which you want to save the file
+9
Nov 26 '13 at 14:09
source share

Sure. All you have to do is click on the stored procedure in the Object Explorer, and then select all the stored procedures in the Summary panel. Then simply right-click and select the scenario option that you prefer.

Good luck.

+7
06 Oct '08 at 19:04
source share

Right-click the database, select Tasks, select Generate Scripts, click Next, Next, select Stored Procedures, Next, Select All, Finish.

Presto!

+6
Oct 06 '08 at 19:04
source share

If you right-click on the database name, the bottom option is โ€œGenerate Scriptsโ€, which will then launch the wizard to create scripts for the entire database or specific objects inside.

+4
Oct 06 '08 at 19:04
source share



All Articles