Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constraints in SQL Server 2000
Message
From
14/03/2008 23:08:00
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Constraints in SQL Server 2000
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01302373
Message ID:
01302373
Views:
49
Hopefully a simple question, but I don't have much experience with writing contraints in SQL Server.

I have one table called Folders with an ID field (autonumber PK) and a Folder field (varchar unique). This contains a list of folders.

I have a second table called Queue. It has several fields, one of which being Folder (corresponds to the Folder field in the first table). How do I write a constraint to enforce that the contents of the Folder field in the Queue table exists in the Folder field in the Folders table?

Thanks!
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform