Check out example codes for "sql query to find column name in database". It will help you in understanding the concepts better.

Code Example 1

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       c.name LIKE '%MyName%'
ORDER BY    TableName
            ,ColumnName;

Code Example 2

tablename search in sql

Code Example 3

Get table containing given field

Code Example 4

SELECT
  	TABLE_NAME
FROM
  	INFORMATION_SCHEMA.TABLES

Learn ReactJs, React Native from akashmittal.com