dbTalk Databases Forums  

disabling contraints?

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


Discuss disabling contraints? in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wes Jones
 
Posts: n/a

Default disabling contraints? - 11-11-2004 , 06:29 PM






Hi all,

I need to unload & reload data from one database to another (same
schema), and I need a way to disable the foreign key constraints while
importing the data.

I have a feeling that the only way to do this is to drop the foreign
keys w/ a ALTER TABLE statement, and I would like to write a utility
to drop the foreign keys & to add them back when I'm done importing
the data, but I don't know how to get all the info needed to recreate
the foreign keys. Specifically, I don't know how to tell if a foreign
key has cascading updates/deletes.

How can I do this?

Thanks for any suggestions!

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 - 2013, Jelsoft Enterprises Ltd.