JSMITH242B
Programmer
Hi Group,
I've issued the following update query:
update _smdba_.[Purchase Requests]
set [One Off Account Code ID]= [Main Account Code ID]
WHERE [Req #] = 20049
I want to update the One Off Account Code ID with the Main Account Code ID.
However, I get the following error:
Server: Msg 4421, Level 16, State 1, Line 1
Derived table 'Purchase Requests' is not updatable because a column of the derived table is derived or constant.
Does anyone know why this error occurs and if so how can I achieve what I'm trying to do?
I need to issue this update for more than a 1000 records.
Kind Regards
I've issued the following update query:
update _smdba_.[Purchase Requests]
set [One Off Account Code ID]= [Main Account Code ID]
WHERE [Req #] = 20049
I want to update the One Off Account Code ID with the Main Account Code ID.
However, I get the following error:
Server: Msg 4421, Level 16, State 1, Line 1
Derived table 'Purchase Requests' is not updatable because a column of the derived table is derived or constant.
Does anyone know why this error occurs and if so how can I achieve what I'm trying to do?
I need to issue this update for more than a 1000 records.
Kind Regards