How to drop everything in a MS SQL Database

When working with SQL data and lots of foreign keys, you may have the need to drop everything. Well I have just the right SQL statement for you. The following statement will drop everything the given database, including the following: non-system stored procedures views functions foreign key constraints primary key constraints tables You can execute parts of the script on its own if you only want to drop a certain part....

March 13, 2018 · 1 min · Michael