0

I am working with SQL Server 2012 and I have one table that has 3 constraint primary key. I just want table structure like that =>

Combination of this 3 column must be unique

ColumnA  ColumnB ColumnC
1         2        3
1         2        4

But when I test this table, This table can accept duplicate data like that=>

ColumnA  ColumnB  ColumnC
1        2        3
1        2        3

enter image description here

Why can I add duplicate value like that even constraint primary key? or Am I misunderstanding about constraint primary?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Loran
  • 772
  • 4
  • 16
  • 38

0 Answers0