My table name is table_1, fields are:
- name
- dept
- location
- status
Status is already 1, but I want to update the status into 2 based on a certain condition else not update. My code is
UPDATE Table_1
SET model = @model,
make = @make,
[Asset Serial No / Service Tag] = @Asset,
[IT Asset Tag] = @AssetTag,
status = 2
WHERE (Request_No = @PassNo)
I have designed a page in asp.net. There is a button reject. If I click that reject button, then the table can't update.when i click reject button it doesnt update wat code i can write a code in a storeprocedure for not updating