- 1
- 2
- 3
- 4
- 5
- 6
SELECT @sql=REPLACE(REPLACE(REPLACE(REPLACE(CONVERT(varchar(max),textvalue),
'((event_id))',@event_id),
'((name))',(select NAMEMKT from rs_tempMarketingActionExtract1)),
'((filterIBP))',(select IBPFILTR from rs_tempMarketingActionExtract1)),
'((count))',Convert(varchar,(select count(*) from rs_tempMarketingActionExtract2)))
FROM rs_configs WHERE config_id=126