Hi All,
I am running DB2 7.2.5 on Windows 2000 server and want to create a sql script that users can run to drop their schema. This is useful as I work in a test lab and schemas regularly have to be dropped to create a clean environment.
I tried using DROP SCHEMA xxx RESTRICT, but get an error becuase there are objects in the schema. Is there a way to tell db2 (using SQL) to drop all objects in the schema? I have similar scripts for Oracle, using DROP USER CASCADE, but can't seem to find an equivalent statement in DB2.
Any ideas? The script can either drop the schema or drop the user and recreate it.
Thanks
JP