G
Guest
When I try to update my data source using
DA_InstalledItems.Update(DS_InstalledItems)
I get this error:
Violation of PRIMARY KEY constraint 'PK_VehicleItems'. Cannot insert
duplicate key in object 'dbo.VehicleItems'. The statement has been
terminated."
DA_InstalledItems.UpdateCommand.CommandText is:
"UPDATE VehicleItems SET ItemID=@ItemID,
ItemSerialNumber=@ItemSerialNumber, PartNumber=@PartNumber,
Description=@Description, Level=@Level, LevelSortOrder=@LevelSortOrder,
ItemSequence=@ItemSequence, Who=@Who, WhenChanged=@WhenChanged WHERE
VehicleId =802"
Any ideas what's happening?
TIA,
Paul
DA_InstalledItems.Update(DS_InstalledItems)
I get this error:
Violation of PRIMARY KEY constraint 'PK_VehicleItems'. Cannot insert
duplicate key in object 'dbo.VehicleItems'. The statement has been
terminated."
DA_InstalledItems.UpdateCommand.CommandText is:
"UPDATE VehicleItems SET ItemID=@ItemID,
ItemSerialNumber=@ItemSerialNumber, PartNumber=@PartNumber,
Description=@Description, Level=@Level, LevelSortOrder=@LevelSortOrder,
ItemSequence=@ItemSequence, Who=@Who, WhenChanged=@WhenChanged WHERE
VehicleId =802"
Any ideas what's happening?
TIA,
Paul