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

SQL server query - search entire DB

$
0
0

Dear all,

I have used the following SQL query to get a list of all the tables that contain a particular term in the column name:

SELECT COLUMN_NAME, TABLE_NAME 
FROM INFORMATION_SCHEMA.COLUMNS 
WHERE COLUMN_NAME LIKE '%test%'

However I would like to write a query that looks through all the rows of each table for a particular value, is this possible? 


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>