Table (Barcodes) Structure:
Barcode - nvarchar(30) Unique, PK
ProductID - bigint
If I run the update:
Update Barcodes SET ProductID = 1000 WHERE ProductID = 2
Then this works. So I know I am looking at the right DB and the update command should work.
But
Update Barcodes SET ProductID = 1000 WHERE Barcode = ‘123456789’
Does not work, no error but no change to the DB.
I’m pulling my hair out, but that’s not helping either.
Is it an issue with SQLCE?
If anyone can help that would be great!
Thanks
Please check that Barcode where ProductId = 1000 does not have whitespaces…