By using this statement in SQL Server:
EXEC sp_msforeachtable 'DROP TABLE ?'
I know it's possible to delete all tables at once.
Is there a similar statement for views? I tried this hoping to be lucky: EXEC sp_msforeachview 'DROP VIEW ?' but it doesn't work!
Here you have, no cursor needed: