Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Splaxi/5bdd95a2837e9bc9d387a9c386560202 to your computer and use it in GitHub Desktop.
Drop All Functions
SELECT ' DROP FUNCTION '+ QUOTENAME(SCHEMA_NAME(schema_id))
+ N'.' + QUOTENAME(name)
from sys.objects
WHERE [type] IN (N'FN', N'IF', N'TF', N'FS', N'FT')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment