can i disable referential constraints on a database (or better, on
some specific table)? I only can imagine the way of dropping all
constraints, doing my database work and then creating the constraints
from scratch.
Greetings, Joerg Spilker
~Tisha
"Joerg Spilker" <j...@jetsys.de> wrote in message
news:39771DF8...@jetsys.de...
------_=_NextPart_001_01BFF279.602FE760
Content-Type: text/plain;
charset="iso-8859-1"
set constraints constraint_name disabled;
then when done
set constraints constraint_name enabled;
-----Original Message-----
From: Joerg Spilker [mailto:j...@jetsys.de]
Sent: Thursday, July 20, 2000 8:43 AM
To: inform...@iiug.org
Subject: How to temporarily disable referential constraints on a table
Hello,
can i disable referential constraints on a database (or better, on
some specific table)? I only can imagine the way of dropping all
constraints, doing my database work and then creating the constraints
from scratch.
Greetings, Joerg Spilker
------_=_NextPart_001_01BFF279.602FE760
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2651.75">
<TITLE>RE: How to temporarily disable referential constraints on a table</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>set constraints constraint_name disabled;</FONT>
</P>
<P><FONT SIZE=2>then when done</FONT>
</P>
<P><FONT SIZE=2>set constraints constraint_name enabled;</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Joerg Spilker [<A HREF="mailto:j...@jetsys.de">mailto:j...@jetsys.de</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, July 20, 2000 8:43 AM</FONT>
<BR><FONT SIZE=2>To: inform...@iiug.org</FONT>
<BR><FONT SIZE=2>Subject: How to temporarily disable referential constraints on a table</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hello,</FONT>
</P>
<P><FONT SIZE=2>can i disable referential constraints on a database (or better, on</FONT>
<BR><FONT SIZE=2>some specific table)? I only can imagine the way of dropping all</FONT>
<BR><FONT SIZE=2>constraints, doing my database work and then creating the constraints</FONT>
<BR><FONT SIZE=2>from scratch.</FONT>
</P>
<P><FONT SIZE=2>Greetings, Joerg Spilker</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01BFF279.602FE760--
A note to all: If you post "How do I do such and such a particular
thing" because that is the only way you could think of to solve your
problem you will rarely get the answer you REALLY NEED. Better to
post your problem and let use suggest the best solution(s). Think
how good it will feel when The Clown recommends doing just what you
had decided to do!
Art S. Kagel
Hey, look, nobody's perfect... :0)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
You mean people should THINK outside the box?
Is that supposed to be a recommendation? :-O
Cheers,
--
Mark.
+----------------------------------------------------------+-----------+
| Mark D. Stock mailto:mds...@mydas.freeserve.co.uk |//////// /|
| http://www.informix.com http://www.informixhandbook.com |///// / //|
| http://www.iiug.org +-----------------------------------+//// / ///|
| |This email will self-destruct in |/// / ////|
| |10 sec. If you received this email |// / /////|
| |in error, sorry about the mess. |/ ////////|
+----------------------+-----------------------------------+-----------+
It would be productive, but I more meant: Don't create new boxes
before you know what's going to have to be contained within.
Art S. Kagel
Hello Art,
> If you REALLY need to disable them then take Byrd's version but if
> what you REALLY need is to be able to load complex corellated data
> without worrying about the order in which you update the tables, use
> Query Gurl's suggestion and DEFER constraint checking until COMMIT
> time.
what i want to do is just this: I´m managing and updating values in
parameter data tables on some evaluation database. After having tested
programs and data on the evaluation machine, i wan´t to transfer the
"new" parameter data to our production database. The data in the
parameter tables have only changed in non primary key values or new
primary keys are added. Now i just want to load this new data in the
target table with a simple DELETE FROM table and then LOAD FROM FILE
INSERT INTO TABLE.
Greetings, Joerg.