Viewing the SQL behind a View in 9.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adamsom69
    New Member
    • Aug 2009
    • 1

    Viewing the SQL behind a View in 9.5

    Hi

    I have a defined view in DB2 version 9.5, but have no source code anywhere on the server telling me the details of the SQL behind the view. How, within the DB2 Control Centre can I view the SQL Code that defines this view.

    Thanks in advance.
  • vijay2082
    New Member
    • Aug 2009
    • 112

    #2
    open control centre > connect to the database > Views > select and right click on view ..click Alter ........you will see the SQL Statement

    Alternatively select text column from syscat.views catalog view.



    Cheers

    Vijay

    Comment

    Working...