Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Query to obtain a list of tables with a column name that contains a specified sub string?

$
0
0
Say that you a large number of tables in a database and you want to have a list of all the tables in the database in which one or more of the column names contains (or is) a specified substring (preferably case insensitive). For example, if the substring is "heat", this query will present me with a list of all the tables in the database in a column has "heat" somewhere in the name. Is a query like this possible? (also, I'm using the free version if that matters).

Viewing all articles
Browse latest Browse all 7129

Trending Articles