Hi all,
I'm hoping to transpose every table in a SQL Server database into three columns: table name, field name, & field value. My end goal is to cross join the result set to itself on the field values (with grouping and summarization to reduce the size of the data set) in order to determine the match percentages between fields, thus informing other users how best to join tables.
I understand how to do the cross join and summarization, but setting up a batch macro to transpose each table into a unified result set has flummoxed me. My thought was to use the INFORMATION_SCHEMA.TABLES view to retrieve a list of table names to use as a control parameter, but I don't understand how to use that list to change the data input. Perhaps I'm on the completely wrong track. See attached.
Thank you in advance,
Tim