bangalibhai
Programmer
Hi,
I have the below in one of my stored procedures.
Declare @tmp table(OptionCode varchar(2) COLLATE SQL_Latin1_General_CP1_CS_AS PRIMARY KEY CLUSTERED)
Record #1: "TP"
Record #2: "Tp"
1st record is insrted in to the above table and as soon as the second record is added "Violation of PRIMARY KEY constraint" error is thrown. Any idea why it would do that even though I have the specific column specified as case sensitive.
Thanks in advance.
I have the below in one of my stored procedures.
Declare @tmp table(OptionCode varchar(2) COLLATE SQL_Latin1_General_CP1_CS_AS PRIMARY KEY CLUSTERED)
Record #1: "TP"
Record #2: "Tp"
1st record is insrted in to the above table and as soon as the second record is added "Violation of PRIMARY KEY constraint" error is thrown. Any idea why it would do that even though I have the specific column specified as case sensitive.
Thanks in advance.