Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Remove Cascaded Update

Author  Topic 

imrul
Starting Member

36 Posts

Posted - 2011-01-20 : 03:55:25
Hi All,
I have two tables say tblOrder and tblOrderDetails. Cascaded update is enable so that if order number in tblOrder is change, Order number in tblOrderDetails change automatically.

Now I want to remove the cascaded update option by script. Please help.

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-01-20 : 05:42:06
It depends on how it has been implemented.
Try scripting the foreign keys and triggers to see how it has been done - then it's probably just a matter of changing the trigger or FK.

If it's via the FK just drop it and add it again

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -