By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
11 rows affected
RuleId | Value1 | Value2 | Value3 | AllTypeIds |
---|---|---|---|---|
1 | 1 | 1 | 1 | 1|2|3 |
2 | 2 | 2 | 2 | 2|3 |
3 | 3 | 3 | 3 | null |
3 rows affected
RuleId | Value1 | Value2 | Value3 | AllTypeIds |
---|---|---|---|---|
4 | 1 | 1 | 1 | 1|2 |
1 | 1 | 1 | 1 | 1|2|3 |
2 | 2 | 2 | 2 | 2|3 |
3 | 3 | 3 | 3 | null |
Msg 2627 Level 14 State 1 Line 11
Violation of UNIQUE KEY constraint 'RuleMustBeUniqueValuesAndTypes'. Cannot insert duplicate key in object 'dbo.Rule'. The duplicate key value is (1, 1, 1, 1|2|3).
Msg 3621 Level 0 State 0 Line 1
The statement has been terminated.