I have a simple UPDATE statement against a table that unfortunately has an UPDATE trigger that forbids updating more than one 1 value at a time.
When running the UPDATE, this error is returned...
Server: Msg 512, Level 16, State 1, Procedure RSAS_TEST_UPR00400_UPDATE, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
The trigger is an encryped object and cannot be edited and is proprietary to another application. The UPDATE worked fine until the trigger was added to the table.
If the trigger cannot be edited or removed, my other option would be to edit my UPDATE into a loop so only one record is updated at a time.
This is the UPDATE statement that fails and returns the above error...
Any ideas how to UPDATE a single record at a time in this situation?
thanks
Jim
When running the UPDATE, this error is returned...
Server: Msg 512, Level 16, State 1, Procedure RSAS_TEST_UPR00400_UPDATE, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
The trigger is an encryped object and cannot be edited and is proprietary to another application. The UPDATE worked fine until the trigger was added to the table.
If the trigger cannot be edited or removed, my other option would be to edit my UPDATE into a loop so only one record is updated at a time.
This is the UPDATE statement that fails and returns the above error...
Code:
UPDATE upr99999
SET PAYRTAMT = UBRTE.Curr_PAYRTAMT
FROM
UPR004BASERATE UBRTE
LEFT JOIN
upr99999 U999
ON (UBRTE.DR_ID0400 = U999.DEX_ROW_ID)
Any ideas how to UPDATE a single record at a time in this situation?
thanks
Jim