Is it possible to find all tables that has a join with 'tMyTable'

  • This isn't 100% accurate, but it will get you close

    select object_name(object_id)

    from sys.sql_modules

    where definition like '%mytablename%'

    and definition like '%join%'

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing post 1 (of 2 total)

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