aspose file tools
The moose likes JDBC and the fly likes Database Migration (Migrating only Tables, leaving Views) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Database Migration (Migrating only Tables, leaving Views)" Watch "Database Migration (Migrating only Tables, leaving Views)" New topic
Author

Database Migration (Migrating only Tables, leaving Views)

Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi


Im doing a Database Migration from HSQL to DERBY..

I need to migrate only the tables in the HSQL to DERBY..

But when I use the following code :



The above code migrates tables but it also migrates Views and creates new tables in detination database with the name of the view in source database.

Now I need to get only the tables leaving out the views...

Can any one pls track out the problem ?

Thanks,
Sud


A Moment's insight is sometimes worth a Life's experience.
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hi

I found the solution myself


Once I got the list of tables and views, I checked the

tableType = rs.getString("TABLE_TYPE")

value to know if it is Table or a View.


Hope this helps somebody....

Cheers,
Sudheer.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Database Migration (Migrating only Tables, leaving Views)
 
Similar Threads
Choosing Database to a Java Swing Standalone Application
retrieve all the tables from a database
Usage of Reserved words for Database Table fields
dynamically finding the tables in a database
Help