Home Forums SQL Server 2005 T-SQL (SS2K5) How to list the source table name of columns in a VIEW (SQL Server 2005) RE: How to list the source table name of columns in a VIEW (SQL Server 2005)

  • Nice work - thanks for posting back.

    May I suggest that you consider using table aliases - it will make your query much more readable. Eg

    select t.col1, t.col2 from tablewithaverylongnameindeedohyes t

    --rather than

    select tablewithaverylongnameindeedohyes.col1, tablewithaverylongnameindeedohyes.col2 from tablewithaverylongnameindeedohyes

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.