I have about 50+ tables in my database, now what I want is to delete all the tables in the database, except for a few.
now what i know is sys.tables is a table listing all the tables, so initially I ran a query like this
delete from sys.tables where name like '%DynamicSurgery' (or any other condition)
thinking it might work. But, as I expected, this causes an error like
Special updates to system directories are not allowed.
Please tell me if there is a way to remove multiples in SQL Server?
source share