This question already has an answer here:
I am trying to drop tables from each server/DB.
I ran the query to get the list of the tables in each database from different server.
SELECT *
FROM sys.objects
WHERE type = 'u' AND name LIKE '%JSK%'
I want to drop those tables.
I need query how to do it?
Assuming no foreign key relationships make order of dropping important: