What is the easiest way to copy all stored procedure definitions for your database? Well, let us quickly learn that today.
Copy All Stored Procedure Definitions
Step 1: Open SQL Server Management Studio
Step 2: Open Object Explorer Details from Top Menu View or Type F7 on your keyboard.
Step 3: Now select all the stored procedures for which you want to generate definition.
Step 4: Right-click on it and follow the options in the image below. In the final menu, you will get an option to select New Query Editor Window, just select that and you are done.
In the new video, you will have all stored procedure definitions. It is a very easy method to generate scripts.
Here are my few recent videos and I would like to know what is your feedback about them. Do not forget to subscribe SQL in Sixty Seconds series.
- MAX Columns Ever Existed in Table – SQL in Sixty Seconds #182
- Tuning Query Cost 100% – SQL in Sixty Seconds #181
- Queries Using Specific Index – SQL in Sixty Seconds #180
- Read Only Tables – Is it Possible? – SQL in Sixty Seconds #179
- One Scan for 3 Count Sum – SQL in Sixty Seconds #178
- SUM(1) vs COUNT(1) Performance Battle – SQL in Sixty Seconds #177
- COUNT(*) and COUNT(1): Performance Battle – SQL in Sixty Seconds #176
Reference: Pinal Dave (http://blog.SQLAuthority.com)