Finding Column,Table in Database for Data

  • hi All,

    I need to find table name from the Database.

    Suppose my DB is Employee with huge tables.

    I want know which table contains the data 'Language Multiple Selected'.

    Expected REsult:-

    Table Column

    EmpLanguage LangSelection

    Thanks in advance

    Pulivarthi

  • something along the lines of the following should work

    use yourdb

    select t.name as TableName, c.name as ColumnName from sys.tables t

    inner join sys.columns c on t.object_id = c.object_id

    where c.name = 'Yourcolumnname'

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply