I have a stored procedure for insert operation.I tried the following but it gives me error.
ALTER PROCEDURE SetStaffSalary @staffid int =0, @amount int
try it like this - it looks like you want t do update
ALTER PROCEDURE setstaffsalary @staffid int = 0 , @amount int = 0 AS BEGIN UPDATE accstaff SET totalsalary = @amount WHERE fk_staffid = @staffid; END;