View Definition display

  • I have some fairly complex views and want to display the definition of the view columns in some way that's dynamic. So if it looks like this:

    Create view vTest

    As

    Select MyTable.ColA as DisplayColA,

    MyTable.ColB + MyTable.ColC as DisplayColB

    FromMyTable

    I want to be able to have a report where I can say

    ViewColumnDefinition

    vTestDisplayColBMyTable.ColB + MyTable.ColC

  • andreq1 (12/15/2008)


    I'm working in both SQL 2000 and 2005, so the situation applies to each system.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

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

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