Connecting Tech Pros Worldwide Help | Site Map

Viewing the SQL behind a View in 9.5

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 18 '09
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's Avatar
Newbie
 
Join Date: Aug 2009
Location: UK
Posts: 22
#2: Aug 19 '09

re: Viewing the SQL behind a View in 9.5


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.

http://publib.boulder.ibm.com/infoce.../r0001068.html

Cheers

Vijay
Reply