DELETE FROM RDS.T_SYNCHRONIZATION_CONFIG WHERE synchronizationconfigid = 'A5CDB0BC-80B8-4FFF-803C-FD726F39EEF2';

INSERT INTO
    RDS.T_SYNCHRONIZATION_CONFIG (Entities,
                                  ProcessType,
                                  ProcessName,
                                  MessageType,
                                  LockResourcePath,
                                  LockGroupName,
                                  Operations,
                                  IgnoreNullResource,
                                  SynchronizationConfigID)
VALUES
    ((SELECT TOP 1 e.EntityID FROM vclib.T_ENTITIES e WHERE e.entname = 'ELECTRONIC_CERTIFICATE_APPLICATION'),
     1,
     N'CreateElectronicCertificateApplicationSignature',
     N'LLO_ELECTRONIC_CERTIFICATE_APPLICATION',
     NULL,
     NULL,
     0,
     0,
     N'A5CDB0BC-80B8-4FFF-803C-FD726F39EEF2');