|
View previous topic :: View next topic
|
| Author |
Message |
nethaji_mainframer
New User
Joined: 12 Dec 2011 Posts: 3 Location: India
|
|
|
|
| I have lost the creation script for a Table. Is there is a way to retreive the creation script?. I am using DB2 V9. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
if You lost the sources of the CREATE table and all the related stuff..
than it' s gone
You can retrieve the info needed to reCREATE the table and all the related stuff
by querying the DB2 catalog tables
for just the table columns something along
| Code: |
SELECT COLNO, NAME, COLTYPE, LENGTH, NULLS FROM SYSIBM.SYSCOLUMNS
WHERE TBNAME = 'table in question'
ORDER BY COLNO |
is a starting point |
|
| Back to top |
|
 |
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
or use a tool like
- Data Studio (free)
- BMC change Manager (not so free)
- ... |
|
| Back to top |
|
 |
sushanth bobby
Senior Member

Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
| or Platinum RC/Query can also be used to create DDL's |
|
| Back to top |
|
 |
|
|