Find related columns among hundreds of tables for future relational identification
问题 I am using SQL Server 2016 to pull information out of our ERP system that is stored in a DB2 database. This has thousands of tables with no keys inside of them. When pulling tables from the system, I want to be able to identify matching column names in tables so I can start creating relationships and keys when building dimensions. Is there a way to create a query that will search my database for column names and list every table that uses that column name? I have been using OPENQUERY and