dbTalk Databases Forums  

Constraints

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Constraints in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fernando Poinho Malard
 
Posts: n/a

Default Constraints - 06-02-2004 , 10:05 AM






Hello,

What is the easiest way to avoid constraint check problems when using DTS?
Is there a way to disable constraints temporarily to allow DTS to run
smoothly?

With constraints enabled, I have to export / import tables at a hierarchical
order. This could be a pain...Obviously, this will generate problems related
to data integrity but, in my case, data is secure and consistent.

Regards,
Fernando.



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Constraints - 06-02-2004 , 10:44 AM






You can disable all constraints. ALTER TABLE tablename NOCHECK CONSTRAINT
constraintname. Add an Exec SQL Task to disable constraints, then add a task
to reenable them afterwards. It may be better to just drop them and then
recreate however.

Quick search revealed the following as well-

http://www.databasejournal.com/scrip...le.php/1459571

http://www.umachandar.com/technical/...pts/Main37.htm



--
Darren Green
http://www.sqldts.com

"Fernando Poinho Malard" <fernando (AT) graphsystem (DOT) com> wrote

Quote:
Hello,

What is the easiest way to avoid constraint check problems when using DTS?
Is there a way to disable constraints temporarily to allow DTS to run
smoothly?

With constraints enabled, I have to export / import tables at a
hierarchical
order. This could be a pain...Obviously, this will generate problems
related
to data integrity but, in my case, data is secure and consistent.

Regards,
Fernando.





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.