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.

78 Views

Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!