There is no statement in SQL insert statements WHERE(which makes sense because there is no record yet). You put identifiers along with all other values if you want to insert a new record or use an operator UPDATEif you want to modify an existing record.
INSERT INTO [ASSETS_CC] ([ASSET_NO], [DEPT], [CC], [PER_CENT])
VALUES (@AssetNumber, @Dept, @CC, @PerCent)
or
UPDATE [ASSETS_CC]
SET [DEPT] = @Dept, [CC] = @CC, [PER_CENT] = @PerCent
WHERE [ASSET_NO] = @AssetNumber
source
share