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.
| Author |
Topic |
|
tclose
Starting Member
24 Posts |
Posted - 2010-04-28 : 19:29:31
|
| Do tables always need foreign keys? What is an example situation in which they wouldn't if so. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-04-30 : 02:10:09
|
| FK is easiest way to ensure relationship is correctly set between two tables. In absence of FK, you might need to implement a trigger to ensure this referential integrity. In case where there's no relation to another table, there's no need of FK.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|