You can use sql to create all the drops you need. For example, the following sql query
USE [MyDatabase]; GO SELECT replace( replace('DROP TABLE [{Schema}].[{TableName}];' ,'{Schema}',TABLE_SCHEMA) ,'{TableName}',TABLE_NAME) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME NOT IN ('TableNameOne','TableNameTwo')
and get the result of the query.
Copy the first column of the query and paste it into a new query window.
It is easy to see that you get a list of quotes for all tables except "TableNameOne" and "TableNameTwo", ...
It seems to me that it is very simple ...
jmcasal
source share