How To Check In Which Table The Column Name Is Held In SQL Server?
Hello everyone,
In this article, I will try to give information about how to check in which table the column name is kept in SQL Server.
In SQL Server, in some cases, we may want to know in which table the column name is kept.
You can easily do this using the code below.
SELECT OBJECT_NAME(c.object_id) 'TABLE',
c.name 'KOLON'
FROM sys.columns c
WHERE c.name LIKE '%COLUMN NAME SEARCHED%'
AND OBJECT_NAME(c.object_id) LIKE 'LG%'
ORDER BY TABLO ASC;
Good luck to everyone in business and life.