Hi guys,
Trying to update a column in my db by prefixing the values in there with values from another column in another table....
code i have so far is...
however this is producing the following error...
any ideas guys how to fix this error?
or am i going completely the wrong way about this in the first place?
cheers,
Dan.
Trying to update a column in my db by prefixing the values in there with values from another column in another table....
code i have so far is...
Code:
update p
set p.Password = replace(p.Password,p.Password,d.Code+p.Password)
from Password p
join DealerEmployee de on de.Id_User = p.Id_User
join Dealer d on d.Id_Dealer = de.Id_Dealer
where p.Password = 'xxxxx'
however this is producing the following error...
Code:
Cannot resolve collation conflict for replace operation.
any ideas guys how to fix this error?
or am i going completely the wrong way about this in the first place?
cheers,
Dan.