I have to store Ids of type Varchar in my SQL Server database table. The Ids are unique and they will be used for update/delete operations.
So I decided to make them PK. The problem is, that only one of the PKs "A" and "a" is allowed, while both may be in the dataset I have to import.
INSERT INTO test(test) VALUES('A')
INSERT INTO test(test) VALUES('a')
Violation of the PRIMARY KEY constraint 'PK_test'. Cannot insert duplicate key in object 'dbo.test'.
Can I make the PK case-sensitive - so that after "A" is inserted, "a" may be inserted but "A" may be not?