I have a table in MS SQL where I have a TERMINAL varchar(50) column and I have a unique key on it.
I get a UK key violation exception when I try to insert record 'HOST1' and then 'HOST1 '.
Why MS sql handles these two strings as they would be the same?
Thanks Z
I believe that MS SQL strips the white space at the end for VARCHAR.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With