USE the database you want to search;
SELECT c.name AS 'ColumnName' ,t.name AS 'TableName'
FROM sys.columns c JOIN sys.tables t ON c.object_id = t.object_id
WHERE (t.name like 'LA%' or t.name like '%luw%' or t.name like 'Louisana%' )
and c.name in ('API','API_NUM','API num','Well_Serial_Num','Well_Serial_No','WELL_SERIA','Well Serial Number','WSN','Serial_no','Well_Serial','well Serial Num')
ORDER BY TableName ,ColumnName;
No comments:
Post a Comment