Skip to content

Instantly share code, notes, and snippets.

@Splaxi
Created September 17, 2019 07:32
Show Gist options
  • Select an option

  • Save Splaxi/cee7e15eef1e5dd1a50940eec2cb6ff1 to your computer and use it in GitHub Desktop.

Select an option

Save Splaxi/cee7e15eef1e5dd1a50940eec2cb6ff1 to your computer and use it in GitHub Desktop.
Drop all stored procedures
SELECT ' DROP PROCEDURE ' + s.NAME + '.' + p.NAME
FROM sys.procedures p
JOIN sys.schemas s
ON p.[schema_id] = s.[schema_id]
WHERE p.type = 'P'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment