I have lots of servers ranging from ABC001 to ABC100, and each one has 100+ companies under it, each company with 100+ tables under it. I want to select a specific server (i.e. ABC005) to get the list of all tables from. I don't wanna get that list for literally everything from ABC001 to ABC100.
I know I can pull it with
Select * FROM INFORMATION_SCHEMA.COLUMNS But is there a way to point to a specific server/DB so that I can save resources and time?
Should it be FROM ABC005.dbo.INFORMATION_SCHEMA.COLUMNS for example?