![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What OS are you using? What version of DB2 are you using? If you are running DB2 on OS390, are you using packages and plans or just plans? This can affect the answers to your question.... Rhino "kevin" <wctdy2003 (AT) yahoo (DOT) com> wrote in message news:7632f111.0308262050.2f08e47b (AT) posting (DOT) google.com... Hi, I am new to DB2, need help. I have an application using Static Embedded SQL with C. I need to change the db schema to satisfy new business requirements by adding an extra column to an existing table. This new column will be used in new executables only. However, the changed table IS used in existing ESQLs. My question is: Do I need to rebuild (recompile/rebind, etc) all the existing ESQL C programs that use this table? Is there anyway to avoid this? regards, k. |
#3
| |||
| |||
|
|
we are using MS 2000, with version 7.2 DB2. I also noticed the following statement from DB2 online doc: "Adding a column to a table will result in invalidation of all packages with insert usage on the altered table." If I have insert statements in the package like: EXEC SQL INSERT INTO anExistingTableBeenAltered (anExistingColumn) VALUES (:value) which does not have anything to do with the added column. Will this package become invalid because of the insert? |
#4
| |||
| |||
|
|
In article <7632f111.0308271218.2a325c67 (AT) posting (DOT) google.com>, wctdy2003 (AT) yahoo (DOT) com says... we are using MS 2000, with version 7.2 DB2. I also noticed the following statement from DB2 online doc: "Adding a column to a table will result in invalidation of all packages with insert usage on the altered table." If I have insert statements in the package like: EXEC SQL INSERT INTO anExistingTableBeenAltered (anExistingColumn) VALUES (:value) which does not have anything to do with the added column. Will this package become invalid because of the insert? The package will become invalid but you can use the command 'db2 rebind package <packagename>' to rebind it. If you do nothing DB2 will automatically try to rebind the package when it is first executed but I've seen severe locking problems because of that. |
![]() |
| Thread Tools | |
| Display Modes | |
| |