dbTalk Databases Forums  

copy tables

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss copy tables in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Werner
 
Posts: n/a

Default copy tables - 08-06-2009 , 10:24 AM






Hi,

what would be the best way to copy a set of tables (structure and data) from
one database to another? The tables have foreign keys between each other but
not to tables out of the set. One of the tables contains a blob column. The
tables may or may not exists in the target database. If the tables exists
they have to be deleted because the table structure may have changed since
last transfer. Optional but not necessary it would be fine to have this
process in a batch for further use.

TIA

Chris Werner
f+s software gmbh

Reply With Quote
  #2  
Old   
Nick Elson [Sybase iAnywhere]
 
Posts: n/a

Default Re: copy tables - 08-06-2009 , 02:11 PM






I would start with `dbunload -t <table_list> ` myself.

Modifying the reload.sql to check for the tables' existences
may will be required.

PowerDesigner may be a much cleaner way of going though.

"Chris Werner" <cwAT{PleaseNoSpam}f-s.de> wrote

Quote:
Hi,

what would be the best way to copy a set of tables (structure and data)
from one database to another? The tables have foreign keys between each
other but not to tables out of the set. One of the tables contains a blob
column. The tables may or may not exists in the target database. If the
tables exists they have to be deleted because the table structure may have
changed since last transfer. Optional but not necessary it would be fine
to have this process in a batch for further use.

TIA

Chris Werner
f+s software gmbh

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.