If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Update existing schema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-09, 05:28
Dosihris Dosihris is offline
Registered User
 
Join Date: Aug 2009
Posts: 9
Update existing schema

Hi. I have a DB2 database containing productive data. Now during the development process i have changed the schema in a test database. so the new test schema has additional colunms, some columns are removed and some are renamed. Is there a way to update the productive schema to the new one? Maybe a tool that generated a script or something like that?
Reply With Quote
  #2 (permalink)  
Old 09-01-09, 08:10
Dosihris Dosihris is offline
Registered User
 
Join Date: Aug 2009
Posts: 9
Am i the first one who needs to update a DB2 Database? Isn't there a small and simple working solution?????
Reply With Quote
  #3 (permalink)  
Old 09-01-09, 08:26
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Most people that are modifying the schema of a database write scripts to do the changes to a development/test system. Then when the testing is complete, they use those same scripts to modify the production systems. If you did not do this, then you will need to generate the scripts yourself based on the differences from the test system versus the production system.

Andy
Reply With Quote
  #4 (permalink)  
Old 09-01-09, 08:49
Dosihris Dosihris is offline
Registered User
 
Join Date: Aug 2009
Posts: 9
Oh really? Well, i use NHibernate to create the database. I just create entities in my Visual Studio and NHibernate creates the database. but unfortunately the Schema Updateing process doesn't work, because DB2 is noch able to do this right. So i need another way. Something like a diff script would be ok. Do you know a tool that can compare two databases and create a diff script that synchronizes both?
Reply With Quote
  #5 (permalink)  
Old 09-01-09, 09:33
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Dosihris
I just create entities in my Visual Studio and NHibernate creates the database.
Another one bitten by the ORM bug...

Interoperability Happens - The Vietnam of Computer Science
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On