INFORMATION_SCHEMA.TABLES
or INFORMATION_SCHEMA.COLUMNS
work for only specified databases.
Is it possible to query table metadata for ALL databases on server by using INFORMATION_SCHEMA
?
You can do this only by using dynamic query for database iteration. One way is using ms_ForEachDB stored procedure, second is querying sys.databases dynamic view.