To get the table where this column use you can use this query.
SELECT *
FROM sys.tables
WHERE tables.object_id IN (SELECT
OBJECT_ID
FROM sys.columns
WHERE columns.name LIKE '%CDRUGNAME%') -- use your column name
Comments
Post a Comment