SQL Server を使用してテーブルに一意のインデックス キーを定義する必要があります。
例えば:
ID Contact1 Contact2 RelationType
-------------------------------------------------------------------
1 1 2 sister // 1 is the 2nd sister
2 3 4 brother // 3 is the 4th brother
3 5 1 father // 5 is the 1st father
4 2 1 sister // bad entry !!!
では、上の表の4番目のIDのような間違ったデータを一意のインデックスキーを使用して挿入できないようにするにはどうすればよいでしょうか?