Delete all stored procedures of a database using a query in sql server
- first generate the list of stored procedures to drop by inspecting the system catalog view:
SELECT 'DROP PROCEDURE ' + p.NAME FROM sys.procedures p
This generates a list ofDROP PROCEDURE
statements in your SSMS output window.
- copy that list into a new query window, and possibly adapt it / change it and then execute it
0 comments: