How to drop all tables from database with one SQL query?
How to drop all tables from database with one SQL query?
You can write query like this:
USE Databasename
SELECT 'DROP TABLE ' + name + ';'
FROM sys.tablesYou can copy and paste into a new SSMS window to run it.
Comments
Post a Comment