Created
September 17, 2019 07:28
-
-
Save Splaxi/4eab92339ad23c5fdafa7a94487aae59 to your computer and use it in GitHub Desktop.
Drop all views
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT ' Drop view ' + s.NAME + '.' + v.NAME | |
| FROM sys.views v | |
| JOIN sys.schemas s | |
| ON v.[schema_id] = s.[schema_id] | |
| WHERE v.type = 'V' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment