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)
 Best way to enforce referencial integrity

Author  Topic 

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2001-10-19 : 14:25:34
Hello all.

I'm looking for the best way to inforce referencial integrity for a table which
might contain data from two separate look up tables.

heres the setup

RequestItems
*ItemID

Tools
*ToolID

Parts
*PartID

I want to make sure that ItemID is either an id from the Tools Table or the Parts Table

Now I'm considering using triggers but i'm wondering if there is a better simpler way.

Thanks

   

- Advertisement -