Comment reactiver les notifications email d'un client qui s'est desabonne ?


Il faut effectuer la requête suivante sur VM01 après avoir renseigné le numéro de client :


use CAMBOS_BBCM

go


declare @TYPE nvarchar(3) = N'CLT'            -- CLT : client / FRS : fournisseur

declare @LOGIN nvarchar(12) = N'016063'        -- numéro client sur 6 positions, donc avec les 0 à gauche


;


begin transaction


select * from CAMBOS_LOGINS

where CBL_TYPE = @TYPE and CBL_LOGIN = @LOGIN


--


update CAMBOS_LOGINS

set CBL_NEWSLETTER = null

where CBL_TYPE = @TYPE and CBL_LOGIN = @LOGIN


--


select * from CAMBOS_LOGINS

where CBL_TYPE = @TYPE and CBL_LOGIN = @LOGIN


-- rollback

commit