I want to count tables that have a specific column name. For instance, dbo.Management
has 300 tables. Some tables have ProtectionKey
column, and others don't.
I need a list of all the tables that have that column ProtectionKey
, or at least a count of them.
I have looked into similar examples but those are either counting ALL columns in a DB or ALL columns in one table.