How to Drop All Databases of instance?

I needed to delete all the databases on Instance, therefore I wrote my favorite Cursor. In this case it is a very simple cursor. To delete the database we use DROP DATABASE < name of DB > statement.

You can use this Script below:

See you later!

  • Grey Twitter Icon
  • Grey Facebook Icon
  • Grey LinkedIn Icon

© 2020 All rights reserved. | Filip Holub

  • Twitter Social Icon
  • Facebook Social Icon
  • LinkedIn Social Icon