How can I execute this query in any way:
delete from sys.tables where is_ms_shipped = 0
What happened, I fulfilled a very large request, and I forgot to put the USE directive on top of it, now I have a zillion table on my master db and do not want to delete them one by one.
UPDATE: this is a completely new database, so I donβt need to care about any previous data, the end result I want to achieve is reset from master db to factory.
sql-server sql-server-2008 sys adhoc sql-server-2008r2-express
Shimmy
source share