View previous topic :: View next topic
|
Author |
Message |
Satish5
New User
Joined: 12 Nov 2007 Posts: 38 Location: Texas, USA
|
|
|
|
Hi,
What will be the impact on programs in case of table change such as adding a column using alter? How to find which all programs need to rebind in case of table change?
Thanks,
Satish |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
All the programs inserting into the table may need to be regenerated (after adding the column to the query if needed). And all those programs which have select * on the table.
You can get those programs from SYSIBM.SYSTABAUTH table. |
|
Back to top |
|
|
balubhat
New User
Joined: 04 Oct 2005 Posts: 19 Location: Singapore
|
|
|
|
You can use SYSIBM.SYSPACKDEP to check which are the programs using the table.
SELECT DNAME FROM SYSIBM.SYSPACKDEP
WHERE BNAME = <TABLE_NAME>
; |
|
Back to top |
|
|
Satish5
New User
Joined: 12 Nov 2007 Posts: 38 Location: Texas, USA
|
|
|
|
Thanks Bharath Bhat and balubhat.
SELECT DNAME FROM SYSIBM.SYSPACKDEP
WHERE BNAME = <TABLE_NAME>
gave me desired reesults.
I could not understand how to get the program list from SYSIBM.SYSTABAUTH, I would apprciate if you can provide the query.
Thanks,
Satish |
|
Back to top |
|
|
|