locate all tables in a db that contain a specific column name

  • Hi Ya'll, (Getting my southern drawl together for the Orlando PASS Conference!)

    I need to get a list of tables in a fairly large database (that I recently inherited) that contain a specific Column name. I think there are some queries that are comparing values from the same column name in different tables even though there is no primary key relationship between these two or more tables.

    I looked in system tables and also in the system stored procedures, but haven't found an answer yet.

    I appreciate all replies.

    By ya'll!

  • try...

    Select table_name from information_schema.columns where column_name like '%text%'


    smv929

  • Surprise! The column name is unique within tables in the database but is referenced by numerous Views.

    Thanks for the assist, smv929, it worked perfectly.

    UR

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

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