Home:ALL Converter>SQL Server : search for table/column for a specific data

SQL Server : search for table/column for a specific data

Ask Time:2017-12-02T22:01:41         Author:MGM

Json Formatter

Can you help me locate a for the table and column name for a specific value? See I only know the specific data but no idea where it resides.

SELECT *
FROM <table_which_i_don't_know_yet>
WHERE <column_name_which_i_don't_know_yet> = <value_that_i_know_of>

What I just found is look for a table with a specific column...

select * 
from INFORMATION_SCHEMA.COLUMNS 
where COLUMN_NAME like '%clientid%' 
order by TABLE_NAME

Author:MGM,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47608681/sql-server-search-for-table-column-for-a-specific-data
yy