DELETE
FROM RDS.T_SYNCHRONIZATION_CONFIG 
WHERE MessageType LIKE '%DLO%'
GO


INSERT INTO RDS.T_SYNCHRONIZATION_CONFIG
(
	Entities,
	ProcessType,
	ProcessName,
	MessageType,
	LockResourcePath,
	LockGroupName,
	Operations,
	IgnoreNullResource,
	SynchronizationConfigID
)
VALUES 
(
	(SELECT TOP 1 EntityId FROM VCLib.T_ENTITIES e WHERE e.EntName = 'DLO_ACCESSED_POSTS'),
	 0,
	'RDS.sp_RDS_FTLOAD_DloAccessPost',
	'DLO_ACCESSED_POSTS',
	NULL,
	NULL,
	31,
	0,
	NEWID()
),
(
	(SELECT TOP 1 EntityId FROM VCLib.T_ENTITIES e WHERE e.EntName = 'DLO_ACCESSED_POSTS_DIRECTION'),
	0,
	'RDS.sp_RDS_DloAccessPostDirection',
	'DLO_ACCESSED_POSTS_DIRECTION',
	NULL,
	NULL,
	31,
	0,
	NEWID()
)