> Hi Everybody,
> I have a view created based on two base tables..now when i drop one of
[quoted text clipped - 4 lines]
> Thanks in advance
> Bye
The view will effectively be dropped.
DB2 will keep the defintion in SYSCAT.VIEWS however, marking the view as
invalid.
There is no automatic revalidation.
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
ras9929 - 29 Dec 2005 14:46 GMT
The other thing to remember is that DB/2 when invalidating a view will
also remove permissions from that view. If DB2 security is handled by
a group other than DBAs, this can cause some organizational headaches.
Here's a query to list views dependent on an table...
SELECT VIEWSCHEMA, VIEWNAME
FROM SYSCAT.VIEWDEP
WHERE BNAME = '<table name>'
AND BSCHEMA = ' <table schema>'