How do I compare SQL system tables sys.table from two (2) databases?
Here the code I tried to use but I get an error message:
SELECT
DB1.*, DB2
.*
FROM
sys.tables
INNER
JOIN DB1onDB2.name= DB1.name
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier DB2.name and DB1 could not be bound
Very Kind Regards, Kevin Scott